org.springframework.beans.factory.BeanDefinitionStoreException: Line 150 in XML document from ServletContext resource [/WEB-INF/mypro-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 150; columnNumber: 85; The prefix "oscache" for element "oscache:config" is not bound.
Caused by: org.xml.sax.SAXParseException; lineNumber: 150; columnNumber: 85; The prefix "oscache" for element "oscache:config" is not bound.
在mypro-servlet.xml中配置如下:
<!-- 缓存配置 -->
<oscache:config configLocation="classpath:oscache.properties" id="cacheProvider" />
<oscache:annotations providerId="cacheProvider">
<oscache:caching id="caching" cronExpression="0 1 * * *" refreshPeriod="86400" />
<oscache:flushing id="flushing" />
</oscache:annotations>
oscache包是想通过maven导入,结果没有导入成功,就自己手动导入,并且完成相应配置,整个项目没有报错,不知道为什么项目还是无法编译通过。
求高人指点,谢谢!
|
|