Java SE + Spring Data + Hibernate

前端 未结 2 1804
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 10:38

I am trying to start a Java SE application with Spring Data + Hibernate and have done the follwowing till now:

Configuration File

@C         


        
2条回答
  •  天涯浪人
    2020-11-29 11:04

    The exception you see is not very likely to be cause by invalid Spring configuration but your classpath setup. This feels like a version incompatibility regarding the ASM libraries and Java 8. The ASM version, Spring 3.2 depends on is known to be incompatible with Java 8.

    Thus, if you want run your code with Java 8, you need to use a recent Spring 4.0 version.

提交回复
热议问题