如评论中所述,这是一条调试消息,不需要采取任何措施。
对于那些感兴趣的人,这里有一些细节:
在启动时,运行HandlerMapping以确定请求和处理程序对象之间的映射。该AbstractDetectingUrlHandlerMapping类有一个detectHandlers方法是注册在当前ApplicationContext中发现的所有处理程序。在bean上进行迭代时,将拒绝没有为其标识URL路径的bean。
这是相应的代码:
// Take any bean name that we can determine URLs for.for (String beanName : beanNames) { String[] urls = determineUrlsForHandler(beanName); if (!ObjectUtils.isEmpty(urls)) { // URL paths found: Let's consider it a handler. registerHandler(urls, beanName); } else { if (logger.isDebugEnabled()) { logger.debug("Rejected bean name '" + beanName + "': no URL paths identified"); } }}


