问题:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) on project springboot-test: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.9.RELEASE:repackage failed: Unab
解决方法:
在启动类中需要添加:@SpringBootApplication。
之前使用的是,@EnableAutoConfiguration和**@ComponentScan**,会出错。
必须使用**@SpringBootApplication**。