| 6 | import org.springframework.context.annotation.Bean; |
| 7 | |
| 8 | @SpringBootApplication |
| 9 | public class App { |
| 10 | |
| 11 | public static void main(String[] args) { |
| 12 | SpringApplication.run(App.class, args); |
| 13 | } |
| 14 | |
| 15 | |
| 16 | |
| 17 | // ==== 测试自动配置 ==== |
| 18 | @Autowired |
| 19 | WebInfo info; |
| 20 | |
| 21 | @Bean |
| 22 | public void printInfo(){ |
| 23 | System.out.println(info.getName()); |
| 24 | } |
| 25 | |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected