摘要: 4.0.0 cn.tri.ssm01 ssm01 0.0.1-SNAPSHOT war ssm01 Maven Webapp http://www.example.com ... 阅读全文
posted @ 2020-10-18 23:38 黑质白章 阅读(80) 评论(0) 推荐(0) 编辑
摘要: Web.xml CharacterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 ... 阅读全文
posted @ 2020-10-18 23:35 黑质白章 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 目录 Spring 概述 依赖注入 Spring beans Spring注解 Spring数据访问 Spring面向切面编程(AOP) Spring MVC Spring概述 1.什么是spring? Spring是个java企业级应用的开源开发框架。Spring主要用来开发Java应用,但是有些扩展是针... 阅读全文
posted @ 2020-10-18 23:33 黑质白章 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 整合后,无需提交session.commit(); 无需关闭session.close(); Log4j.properties // 日志记录 log4j.rootLogger=DEBUG,Console log4j.appender.Console=org.apache.log4j.ConsoleAppender lo... 阅读全文
posted @ 2020-10-18 23:28 黑质白章 阅读(123) 评论(0) 推荐(0) 编辑
摘要: java项目下,可以通过 new ClassPathXmlApplicationContext("ApplicationContext.xml"); web项目下,需通过监听器 Listener,初始化xml文件,否则就需要在大部分类中new ,容易内存溢出 web 02 i... 阅读全文
posted @ 2020-10-18 21:13 黑质白章 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 注意:通过接口实现可以用Method method, Object[] args, Object target, Exception ex 获取相关信息。 通过schema和注解,可以通过joinPoint\Object returnValue\throws e 相关jar包: 1、aopliance.jar 2、aspectjweaver.ja... 阅读全文
posted @ 2020-10-18 20:22 黑质白章 阅读(104) 评论(0) 推荐(0) 编辑
摘要: spring事务: 什么是事务: 事务逻辑上的一组操作,组成这组操作的各个逻辑单元,要么一起成功,要么一起失败. 事务特性(4种): 原子性 (atomicity):强调事务的不可分割. 一致性 (consistency):事务的执行的前后数据的完整性保持一致. 隔离性 (isolation):一个事务执行的过程中,不应该受到其他事务的干扰 持久性(dur... 阅读全文
posted @ 2020-10-18 20:04 黑质白章 阅读(102) 评论(0) 推荐(0) 编辑