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

  • 相关阅读:
    使用python写天气预告
    beef配合ettercap批量劫持内网的浏览器
    html布局
    python 使用paramiko模块上传本地文件到ssh
    mysql一些函数的记录
    python与ssh交互
    html笔记4
    html笔记3
    html笔记2
    html笔记1
  • 原文地址:https://www.cnblogs.com/chiwang/p/9389648.html
Copyright © 2011-2022 走看看