Git Product home page Git Product logo

Comments (4)

met-pub avatar met-pub commented on July 20, 2024

你这报错是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.

sugazaki avatar sugazaki commented on July 20, 2024

换成1.7就好了

目测是rose引用了
image

这个在jdk1.8中是跑不起来的

from paoding-rose.

met-pub avatar met-pub commented on July 20, 2024

这个不是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.

hawkingfoo avatar hawkingfoo commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.