`

java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - c

阅读更多
[code="java"]java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Tue Nov 26 14:12:06 CST 2013]; root of context hierarchy

 

细心的可以发现 是web 里的配置问题,  <XXX-mapping> 要有次序来排放

 

<servlet>
		<servlet-name>springmvc</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<init-param>
			<param-name>contextConfigLocation</param-name>
			<param-value>classpath:config/springmvc-servlet.xml</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>springmvc</servlet-name>
		<url-pattern>/</url-pattern>
	</servlet-mapping>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics