|
|
@@ -16,11 +16,11 @@ public class PrintAllControllers implements CommandLineRunner {
|
|
|
|
|
|
@Override
|
|
|
public void run(String... args) throws Exception {
|
|
|
- System.out.println("====== 已注册的 Controller 映射 ======");
|
|
|
- RequestMappingHandlerMapping mapping = applicationContext.getBean(RequestMappingHandlerMapping.class);
|
|
|
- mapping.getHandlerMethods().forEach((key, value) -> {
|
|
|
- System.out.println(key + " => " + value.getBeanType().getName());
|
|
|
- });
|
|
|
- System.out.println("=====================================");
|
|
|
+// System.out.println("====== 已注册的 Controller 映射 ======");
|
|
|
+// RequestMappingHandlerMapping mapping = applicationContext.getBean(RequestMappingHandlerMapping.class);
|
|
|
+// mapping.getHandlerMethods().forEach((key, value) -> {
|
|
|
+// System.out.println(key + " => " + value.getBeanType().getName());
|
|
|
+// });
|
|
|
+// System.out.println("=====================================");
|
|
|
}
|
|
|
}
|