how to configure 'dispatcherServlet' load on startup by spring boot?

前端 未结 3 886
暖寄归人
暖寄归人 2021-02-08 11:29

I use spring-boot-starter-parent as parent and add spring-boot-starter-web as denpendency.

By add the @SpringBootApplication annot

3条回答
  •  不思量自难忘°
    2021-02-08 12:24

    BTW, the BeanNameUrlHandlerMapping is harmless here.

    It is used to map a Spring Bean to a URL - for example it might be used to support Spring HttpInvoker remoting.

    The rejection lines in the log output simply mean that it doesn't recognize any of the Spring beans as beans that require a URL mapping. Annoying messages but harmless. You could always set the logging level for this bean or its package to INFO or above to remove the message. In Spring Boot's application.properties put

    logging.level.org.springframework.web.servlet.handler=INFO

提交回复
热议问题