使用@Autowired,自动导入demo-spring-boot-starter中定义的业务类失败,其实我们是已经导进去了,也能点进去,但是发现点进去后下不了源码,显示not found
自定义启动器里的类发现无法调用
解决办法
xxx-spring-boot-starter自定义启动器项目中修改pom里面maven 的插件
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
<mainClass>com.xxxx.xxxx.xxxApplication(自定义启动器的启动类)</mainClass>
</configuration>
</plugin>