I use spring-boot-starter-parent
as parent and add spring-boot-starter-web
as denpendency.
By add the @SpringBootApplication
annot
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