Java SE + Spring Data + Hibernate

前端 未结 2 1786
没有蜡笔的小新
没有蜡笔的小新 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 10:59

    I was also facing same issue with Spring-3.2.0 and Java 8 ( jdk1.8.0_60 ). After using 3.2.14 release of spring framework , it works.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题