1.status=404 Whitelabel Error Page Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Mon Nov 13 16:37:27 CST 2017 There was an unexpected error (type=Not Found, status=404). No message av…
学习SpringBoot需要的前期基础 Spring(Bean容器 IOC set 构造方法 AOP) SpringMVC(GET POST Restful) 对于SpringBoot,约定大于配置 pom.xml详解 parent依赖:可以类比父子类的继承,这里如果有parent就不需要再把之前定义的一大串依赖重新定义二十可以将它们封装到一个文件中,用parent依赖导入进pom.xml中 2.plugin插件作用: <!--下面为一个插件,将SpringBoot大包围可运行的jar-->…
springboot注解扫描范围是由@ComponentScan指定的;默认情况下为启动程序所在目录及其子包; 如果需要指定扫描路径,在启动程序中添加修改 @ComponentScan(basePackages={"org.jstudio.a","org.jstudio.b"}) @SpringBootApplication public class xxxApplication { public static void main(String[] args) {…
1. spring 文档说明 Many Spring Boot developers always have their main class annotated with @Configuration, @EnableAutoConfiguration and @ComponentScan. Since these annotations are so frequently used together (especially if you follow the best practices a…