常用知识点记录
来源:互联网 发布:windows经典系统桌面 编辑:程序博客网 时间:2024/06/08 08:55
struts.xml
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"><struts> <package name="default" namespace="/" extends="struts-default"> </package></struts>
hibernate.cfg.xml
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"><hibernate-configuration> <session-factory > <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url"> jdbc:mysql://localhost:3306/test?useUnicode=true </property> <property name="connection.username">root</property> <property name="connection.password"></property> <property name="show_sql">true</property> <property name="format_sql">true</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hbm2ddl.auto">update</property> <property name="hibernate.current_session_context_class">thread</property> </session-factory></hibernate-configuration>
web.xml中过滤器写法
<!-- 添加struts2的过滤器 --> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
常用项目结构(struts和hibernate框架):
实体层
数据库层
接口层
接口实现层//以上是模型层
动作层//控制层
jsp页面//视图层
0 0
- Oracle常用知识点记录
- PHP常用知识点记录
- 常用知识点记录
- log4j常用知识点记录
- 个人记录一些常用的知识点
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 知识点记录
- 简单记录平时常用容易混淆的小知识点
- 用grunt搭建自动化的web前端开发环境-完整教程
- 一个超好用的angular热键插件
- vulakn教程--Drawing a Triangle--Presentation--Window surface
- smm框架集成总结
- AngularJS ng-repeat下使用ng-model
- 常用知识点记录
- leetcode---Word Search---回溯
- Struts2的配置文件和加载顺序
- 访问控制符
- yii2无符合条件的查询结果总结。
- Android - MPTCP - (./net/ipv4/Kconfig)
- ACM 几何基础(2)
- Java与算法之(6) - 八皇后问题
- 将ResultSet结果集通过反射转换成对象LIST集合