zoukankan      html  css  js  c++  java
  • 记录SSH中约束的步骤

    一:单独配置Spring容器

      1.创建配置文件,并导入约束(4个)

        beans| context| aop| tx

        a.导入beans步骤:  1.创建好applicationContext.xml文件,先书写一个beans根元素

                      

                    2.切换到设计视图,右键edit namespace

                    

                  3.先无脑导一个xsi

                    

                    

                  4.导入其他四个

                    

                    

                    这是bean

                    

                    

                    这是context

                    

    二:导入struts.xml配置文件的约束

        1.Libraries  => Web App Libraries => struts2-core-2.3.24.jar => struts-2.3.dtd ,然后双击打开

         复制代码:

    <!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
        "http://struts.apache.org/dtds/struts-2.3.dtd">

         粘贴到struts.xml文件中

  • 相关阅读:
    C#算法收集
    算法导论数论最大公约数
    算法导论数论初等数论的概念
    Poj3090 欧拉函数求和
    算法导论数论素数测试和pollard整数因子分解
    Poj 2407
    算法导论数论模运算
    Poj2478
    Window Phone7中SL开发中的位图和从相机获取图片
    WP7中SilverLight中触摸事件和事件路由
  • 原文地址:https://www.cnblogs.com/chiwang/p/9389648.html
Copyright © 2011-2022 走看看