随笔分类 -  SpringBoot

摘要:一.SpringBoot在web编程中的"约定大于配置"(WebMvcAutoConfiguration) 1.静态资源默认路径,如果没用thymeleaf可以localhost:8080/Xxx.html访问到 "classpath:/META-INF/resources/", "classpat 阅读全文
posted @ 2020-09-17 14:34 远亭 阅读(146) 评论(0) 推荐(0)
摘要:一.spring-boot的spring-beans.xml与配置类 (一)@ImportResource(locations="{classpath:spring.xml}") SpringBoot不会自动识别spring-beans.xml文件,所以需要用@ImportResource来进行引入 阅读全文
posted @ 2020-09-17 10:45 远亭 阅读(533) 评论(0) 推荐(0)
摘要:一:spring-boot,强大的依赖管理整合功能,根据习惯优于配置约定,进行去配置化(spring全家桶套件,javaee中涉及的技术) @SpringBootApplication的三大注解意义 1.@spring @SpringBootConfigruation包含@Configruation 阅读全文
posted @ 2020-09-16 12:24 远亭 阅读(644) 评论(0) 推荐(0)