Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. 2019-06-03 12:39:26.333 INFO 15630 --- [nio-8084-exec-9] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
  2.  
  3. 2019-06-03 12:32:10.437 INFO 26049 --- [nio-8084-exec-9] .w.s.m.a.DefaultAnnotationHandlerMapping : Mapped URL path [/testc] onto handler 'testController'
  4. 2019-06-03 12:32:10.437 INFO 26049 --- [nio-8084-exec-9] .w.s.m.a.DefaultAnnotationHandlerMapping : Mapped URL path [/testc.*] onto handler 'testController'
  5. 2019-06-03 12:32:10.437 INFO 26049 --- [nio-8084-exec-9] .w.s.m.a.DefaultAnnotationHandlerMapping : Mapped URL path [/testc/] onto handler 'testController'
  6. 2019-06-03 12:32:10.583 INFO 26049 --- [nio-8084-exec-9] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/testc],methods=[GET]}" onto public java.lang.String com.krawler.spring.TestController.test()
  7. 2019-06-03 12:32:16.898 INFO 26049 --- [nio-8084-exec-9] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/testc],methods=[GET]}" onto public java.lang.String com.krawler.spring.TestController.test()
  8.  
  9. @Controller
  10. @RequestMapping("testc")
  11. public class TestController {
  12.  
  13. @GetMapping
  14. public String test(){
  15. return "test";
  16. }
  17. }
  18.  
  19. @RestController
  20. @RequestMapping("testrc")
  21. public class TestRestController {
  22.  
  23. @GetMapping
  24. public String test(){
  25. return "test";
  26. }
  27. }
  28.  
  29. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  30. <!DOCTYPE html>
  31. <html>
  32. <head>
  33. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  34. <title>JSP Page</title>
  35. </head>
  36. <body>
  37. <h1>Hello World!</h1>
  38. </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement