03 2023 档案

摘要:rpm安装的java自动配置环境变量,太久没用忘了jdk在哪里,而配置maven需要配置java环境变量,所以maven读取jdk环境变量出错NB: JAVA_HOME should point to a JDK not a JRE。 弄了半天无果,索性删除所有jdk文件重新安装 #查看Java版本 阅读全文 »
posted @ 2023-03-27 12:31 qintee 阅读(219) 评论(0) 推荐(0) 编辑
摘要:整合JUnit 名称:@SpringBootTest类型:测试类注解位置:测试类定义上方作用:设置JUnit加载的SpringBoot启动类范例: @SpringBootTest(classes = Springboot07JunitApplication.class)class Springboo 阅读全文 »
posted @ 2023-03-23 16:34 qintee 阅读(21) 评论(0) 推荐(0) 编辑
摘要:Maven的pom.xml设了多环境,Boot的application.yml也设置了多环境 要使得Boot读取到Maven中的配置就需要在Maven的pom.xml中设置<profile.active> pom.xml中主要修改这里 pom.xml全部 <?xml version="1.0" en 阅读全文 »
posted @ 2023-03-23 14:57 qintee 阅读(139) 评论(0) 推荐(0) 编辑
摘要:SpringCinfig下必须有@EnableAspectJAutoProxy //开启切面@EnableAspectJAutoProxy public class SpringConfig { } 切点表达式 可以简单理解为当直线execution()中路径的方法时将其捕获,在被捕获方法前或后运行 阅读全文 »
posted @ 2023-03-21 10:25 qintee 阅读(15) 评论(0) 推荐(0) 编辑
摘要:学习中,如有错误请见谅 项目结构 ServletContainersInitConfig public class ServletContainersInitConfig extends AbstractAnnotationConfigDispatcherServletInitializer { p 阅读全文 »
posted @ 2023-03-18 14:31 qintee 阅读(14) 评论(0) 推荐(0) 编辑
摘要:学习中,如有错误请多包涵 启动服务器初始化过程服务器启动,执行ServletContainersInitConfig类,初始化web容器执行createServletApplicationContext方法,创建了WebApplicationContext对象加载SpringMvcConfig执行@ 阅读全文 »
posted @ 2023-03-18 11:54 qintee 阅读(15) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示