记录SSH中约束的步骤

一:单独配置Spring容器apache

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

    beans| context| aop| txspa

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

                  

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

                

              3.先无脑导一个xsicode

                

                

              4.导入其余四个xml

                

                

                这是beanblog

                

                

                这是contextit

                

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

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

相关文章
相关标签/搜索