摘要:
Spring AOP 二、AOP 1、AOP术语 AOP面向切面编程,是对oop的补充。aop的底层就是动态代理,他的功能就是将动态代理进行友好的封装。 AOP相关术语: Joinpoint( 连接点):类中的方法称为连接点 Pointcut( 切入点):连接点所在的类称为节入点 A
阅读全文
posted @ 2021-10-16 09:36
迎着风跑
阅读(362)
推荐(0)
摘要:
logging.level.com.woniu.dao=DEBUGlogging.level.root=INFOlogging.pattern.console=${CONSOLE_LOG_PATTERN:%clr(${LOG_LEVEL_PATTERN:%5p}) %clr([%15.15t]){f
阅读全文
posted @ 2021-10-16 09:19
迎着风跑
阅读(141)
推荐(0)
摘要:
一、整合mybatis 1、导入坐标 <parent> <artifactId>spring-boot-starter-parent</artifactId> <groupId>org.springframework.boot</groupId> <version>2.3.7.RELEASE</ve
阅读全文
posted @ 2021-10-16 09:17
迎着风跑
阅读(123)
推荐(0)
摘要:
一、SpringBoot单元测试 1、引入启动器 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId></dependency> <font
阅读全文
posted @ 2021-10-15 18:37
迎着风跑
阅读(1275)
推荐(1)
摘要:
1.1 th:text 例如<span th:text="Hello"></span> 如果是变量,要确保后台返回了该属性的变量,不然页面会有异常<span th:text="${msg}"></span> 1.2 th:value <input type="text" name="userName
阅读全文
posted @ 2021-10-15 18:32
迎着风跑
阅读(931)
推荐(0)
摘要:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.7.RELEASE</version></parent><dep
阅读全文
posted @ 2021-10-15 18:00
迎着风跑
阅读(454)
推荐(0)
摘要:
DatabasePropertiesConfig中的内容(数据库连接信息): @PropertySource(value = {"classpath:db.properties"})public class DataBasePropertiesConfig { @Value("${jdbc.driv
阅读全文
posted @ 2021-10-15 17:54
迎着风跑
阅读(134)
推荐(0)
摘要:
<dependencies> <!--junit--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </depende
阅读全文
posted @ 2021-10-15 16:51
迎着风跑
阅读(795)
推荐(0)