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文件中

  • 相关阅读:
    java 原子性 可见性 有序性
    java中Array/List/Map/Object与Json互相转换详解(转载)
    观察者模式(转载)
    TCP协议
    “数字签名”与“数字证书”
    两道笔试题
    定时任务处理过程中的问题
    行数据库VS列数据库
    B树和B+树
    ThreadPoolTaskExecutor介绍
  • 原文地址:https://www.cnblogs.com/chiwang/p/9389648.html
Copyright © 2011-2022 走看看