zoukankan      html  css  js  c++  java
  • springboot2.3.2控制台输出@RequestMapping路径

    
    
    application.properties或者application.yml

    添加这个几个配置,控制台就可以输出访问路径了


    logging:
    level:
    root: info #日志输出根目录
    org.mybatis: debug #mybatis日志
    java.sql: debug #输出sql
    org.springframework.web: trace #输出的日志打印出来的最低级别。
    
    
    当前版本
     .   ____          _            __ _ _
     /\ / ___'_ __ _ _(_)_ __  __ _    
    ( ( )\___ | '_ | '_| | '_ / _` |    
     \/  ___)| |_)| | | | | || (_| |  ) ) ) )
      '  |____| .__|_| |_|_| |_\__, | / / / /
     =========|_|==============|___/=/_/_/_/
     :: Spring Boot ::        (v2.3.2.RELEASE)
    
    2020-08-09 12:03:02.045 TRACE 8758 --- [  restartedMain] s.w.s.m.m.a.RequestMappingHandlerMapping : 
        c.r.w.e.ImportantExcelController:
        { /important/importantExcel}: importantExcel()
        {GET /important/downTemplet1}: download()
        {GET /important/download/errorExcel/{fileName}}: download(HttpServletRequest,HttpServletResponse,String)
        { /important/importantPart}: importantPart(HttpServletRequest,HttpServletResponse,MultipartFile)
        { /important/deleteExcel}: deleteExcel(String)
        {GET /important/downloadTemplate}: downloadTemplate(HttpServletResponse,HttpServletRequest)
        { /important/list}: list()
        { /important/progress}: progress(String)
    2020-08-09 12:03:02.048 TRACE 8758 --- [  restartedMain] s.w.s.m.m.a.RequestMappingHandlerMapping : 
        c.r.w.f.FullCalendarController:
        { /full/index}: index()
        {POST /full/getData}: getData()
    

    之前版本,控制台会输出所有的访问路径 . ____ _ __ _ _
    /\ / ___'_ __ _ _(_)_ __ __ _ ( ( )\___ | '_ | '_| | '_ / _` | \/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.0.5.RELEASE) 信息: Initializing Spring embedded WebApplicationContext [localhost-startStop-1] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 2422 ms [localhost-startStop-1] INFO org.springframework.boot.web.servlet.ServletRegistrationBean - Servlet dispatcherServlet mapped to [/] [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/*] [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/*] [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'httpPutFormContentFilter' to: [/*] [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/*] [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'myWebFilter' to urls: [/*] [localhost-startStop-1] INFO com.rjj.demo.handle.MyWebFilter - WebFilter init [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/canvas]}" onto public java.lang.String com.rjj.demo.controller.CanvasController.canvas() [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/excel]}" onto public java.lang.String com.rjj.demo.controller.ExcelController.helloHtml(java.util.Map<java.lang.String, java.lang.Object>) [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/ex/{id}]}" onto public void com.rjj.demo.controller.ExcelController.ex(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.Integer) [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/full/index]}" onto public java.lang.String com.rjj.demo.controller.FullCalendarController.index() [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/full/getData],methods=[POST]}" onto public java.util.List<java.util.Map<java.lang.String, java.lang.String>> com.rjj.demo.controller.FullCalendarController.getData() [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/log]}" onto public java.lang.String com.rjj.demo.controller.LogController.logIndex() [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/logout],methods=[GET]}" onto public java.lang.String com.rjj.demo.controller.LoginController.logout(javax.servlet.http.HttpSession) [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/toLogin]}" onto public java.lang.String com.rjj.demo.controller.LoginController.login(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.Object>) [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/loginPost],methods=[GET]}" onto public java.util.Map<java.lang.String, java.lang.Object> com.rjj.demo.controller.LoginController.loginPost(java.lang.String,java.lang.String,javax.servlet.http.HttpSession,javax.servlet.http.HttpServletResponse)
  • 相关阅读:
    window 窗口对象http://www.diybl.com/course/1_web/javascript/jsjs/2007104/76401.html
    Web开发中的Drag&Drop完全手册http://www.cnblogs.com/birdshome/archive/2006/07/22/457369.aspx
    [转载]window 的 setTimeout() 與 clearTimeout() 方法
    javascript this详解(转) http://www.cnblogs.com/felix2007/archive/2007/03/21/682670.html
    关闭浏览器弹出对话框事件onbeforeunload http://www.blogjava.net/jennyli/articles/82351.html
    页面跳转http://www.9ba.cn/post/235.html
    POJ 3667 Hotel
    hdu 2511 汉诺塔 X
    UESTC Another LCIS
    Hdu 1576 A/B
  • 原文地址:https://www.cnblogs.com/renjianjun/p/13462238.html
Copyright © 2011-2022 走看看