zoukankan      html  css  js  c++  java
  • Myeclipse xml标签代码提示,引入schema

    以SpringMVC为例

    先引入命名空间

    需要配置

    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xsi:schemaLocation="
            http://www.springframework.org/schema/mvc
            http://www.springframework.org/schema/mvc/spring-mvc.xsd

    效果如下

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:mvc="http://www.springframework.org/schema/mvc"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans.xsd 
            http://www.springframework.org/schema/mvc
            http://www.springframework.org/schema/mvc/spring-mvc.xsd">
    
    </beans>
    View Code

    引入schema

    Window->Preferences->XML->XML Catalog

    点击添加add选择文件添加

    在源码包里找到schema文件夹下的mvc schema

    Key type选择Schema location

    Key填写http://www.springframework.org/schema/mvc/spring-mvc.xsd

    按代码提示就会有mvc标签提示了

  • 相关阅读:
    编写登陆认证程序
    模拟实现一个ATM + 购物商城程序
    三级菜单
    12 场景制造
    11 Unity Editor界面
    3.7练习题
    Coolite 弹窗妙用
    Nginx反向代理 实现Web负载均衡
    MySQL 架构
    Lnmmp
  • 原文地址:https://www.cnblogs.com/huangjian2/p/6774596.html
Copyright © 2011-2022 走看看