Comments (4)
你这报错是jdk版本低啊。。。
blog: http://bianbian.org
On Mon, May 30, 2016 at 9:07 PM, sugazaki [email protected] wrote:
Caused by: java.lang.IllegalStateException: Context namespace element
'annotation-config' and its parser class
[org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser]
are only available on JDK 1.5 and higher
at
org.springframework.context.config.ContextNamespaceHandler$1.parse(ContextNamespaceHandler.java:65)
at
org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#30, or mute the
thread
https://github.com/notifications/unsubscribe/AGwH0PjPE_SdzFusWBAopkVVyFQ5JFQzks5qGuEggaJpZM4IpyJV
.
from paoding-rose.
换成1.7就好了
这个在jdk1.8中是跑不起来的
from paoding-rose.
这个不是rose引用的。这是spring低版本。你是不是有其他库依赖到了。
好像rose没有显式引用spring版本,你用什么版本就用什么版本。
我在1.8下完全能跑,我的spring是4.2.5
blog: http://bianbian.org
On Tue, May 31, 2016 at 4:25 PM, sugazaki [email protected] wrote:
换成1.7就好了
目测是rose引用了
[image: image]
https://cloud.githubusercontent.com/assets/1066802/15668119/3dafece8-274c-11e6-8800-fbbda4a7a527.png这个在jdk1.8中是跑不起来的
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AGwH0AkflCgf690eQBfXUl3pBkzsZZTmks5qG_CPgaJpZM4IpyJV
.
from paoding-rose.
Rose和jade中排除掉Spring相关的包。再依赖spring4.1.4以上的版本就可以支持1.8了,亲测有效。
<dependency>
<groupId>net.paoding</groupId>
<artifactId>paoding-rose</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</exclusion>
</exclusions>
如果有依赖jade,也要排除
<dependency>
<groupId>net.paoding</groupId>
<artifactId>paoding-rose-jade</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
</exclusions>
</dependency>
from paoding-rose.
Related Issues (20)
- RoseFilter中的ignoredPaths怎么在web.xml中配置多个呀?
- 好久没有更新了哦 HOT 2
- 求教:如何限制客户端请求的大小? HOT 1
- portal在jetty8.1.18中nullpointerexception
- jade是不是不支持jdk8? HOT 1
- 404 能在rose 中处理吗 HOT 1
- rose如何在jsp里使用i18n支持?
- 采用vm模版时的几个问题 HOT 2
- 想声明个拦截器,作用在反射controller中方法参数赋值之前
- pipe测试不成功,会一直卡在那里,浏览器没有响应。已经使用2.0。 HOT 2
- Rose will not be updated any more? Dose it support JDK1.8 HOT 1
- restful提交json,requestBody HOT 4
- why paoding updated to spring 4.x ? HOT 1
- JADE中##sql拼接问题 HOT 1
- jade 与Lombok 的Data注解或者 Thrift的简单bean 的链式编程冲突
- 如何在rose框架内部对request进行wrapper
- Rose 迁移 Spring Boot HOT 2
- 这个项目是不是只有老人人的人用来怀旧了 HOT 1
- 这框架真的垃圾
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paoding-rose.