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)