ご覧いただきありがとうございます。
現在springframeworkを使ってJavaの開発を行っていますがTomcatのサーバーを起動すると
DEBUG o.s.w.s.h.BeanNameUrlHandlerMapping - Rejected bean name 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': no URL paths identified
といったエラーが出ます。
ライブラリに入っている
org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.classの
detectedhandlers()メソッド(以下のソースです)
Java
1protected void detectHandlers() throws BeansException { 2 if (logger.isDebugEnabled()) { 3 logger.debug("Looking for URL mappings in application context: " + getApplicationContext()); 4 } 5 String[] beanNames = (this.detectHandlersInAncestorContexts ? 6 BeanFactoryUtils.beanNamesForTypeIncludingAncestors(getApplicationContext(), Object.class) : 7 getApplicationContext().getBeanNamesForType(Object.class)); 8 9 // Take any bean name that we can determine URLs for. 10 for (String beanName : beanNames) { 11 String[] urls = determineUrlsForHandler(beanName); 12 if (!ObjectUtils.isEmpty(urls)) { 13 // URL paths found: Let's consider it a handler. 14 registerHandler(urls, beanName); 15 } 16 else { 17 if (logger.isDebugEnabled()) { 18 logger.debug("Rejected bean name '" + beanName + "': no URL paths identified"); 19 } 20 } 21 } 22 }
からエラーが出ているようであることまではわかりました。
このエラーはどういった原因で出るのでしょうか?
対処法に心当たりのある方はご回答をお願いいたします。
※アドバイスありがとうございます!
applicationContext-servlet.xmlのMappingの設定に関わっていると思われる部分は
java
1 <mvc:resources mapping="/static/**" location="/, classpath:/META-INF/web-resources/" /> 2 <mvc:default-servlet-handler /> 3 <bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"> 4 <property name="order" value="-1" /> 5 <property name="flowRegistry" ref="flowRegistry" /> 6 </bean> 7 <!-- <bean id="flowMappings" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping" p:order="0"> <property name="mappings"> <value>/tests/**-flow=flowController</value> 8 </property> </bean> -->
回答1件
あなたの回答
tips
プレビュー