随笔分类 -  Spring的简单使用

摘要:一:日期处理: 1:日期的提交处理: 单个日期处理: 要使用注解,并且注解要搭配springmvc文件中的<annotationdriven> <mvc:annotation-driven></mvc:annotation-driven> <form action="${pageContext.re 阅读全文
posted @ 2022-08-19 17:05 Sunward阳 阅读(24) 评论(0) 推荐(0)
摘要:一:SM框架的整合: 所需要的依赖: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dep 阅读全文
posted @ 2022-08-09 22:40 Sunward阳 阅读(49) 评论(0) 推荐(0)
摘要:一:AOP框架: 版本一:业务和切面耦合在一起,没有拆分 public class BookServiceImpl { public void buy(){ System.out.println("事务开启"); System.out.println("买书业务"); System.out.prin 阅读全文
posted @ 2022-08-07 23:09 Sunward阳 阅读(40) 评论(0) 推荐(0)
摘要:一:IOC(控制反转):它是由spring容器进行对象的创建和依赖注入,程序员使用时直接取出即可 正转:例如: Student stu=new Student(); stu.setname("tom"); stu.setAge(20); 在正转中,由程序员自觉来创建对象,给对象注入值。 反转:由sp 阅读全文
posted @ 2022-08-05 23:25 Sunward阳 阅读(106) 评论(0) 推荐(0)