随笔分类 - 框架相关
摘要:Struts2的4种传值方式:1.通过request/session等传值可通过ServletActionContext.getRequest()/getSession()等方法来获得request/session对象, 然后调用其中的setAttribute(),getAttribute(),ge
阅读全文
摘要:Hibernate基础 原理: 1.通过Configuration().configure();读取并解析hibernate.cfg.xml配置文件 2.由hibernate.cfg.xml中的<mapping resource="com/xx/User.hbm.xml"/>读取并解析映射信息 3.
阅读全文
摘要:1,控制层框架 与 springmvc 效果相同 作用: 数据处理 调用后台代码 产生响应 异常处理 国际化 2,核心控制器 3,配置核心文件 web.xml <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.s
阅读全文