Setting up a Spring JPA project for use in an MVC project - Error creating bean

后端 未结 4 460
感情败类
感情败类 2021-01-04 16:11

I developed a Spring JPA project in eclipse which has access to the data stored in a mysql server. Now I need to import this project in a Spring @ MVC project. So:

4条回答
  •  一向
    一向 (楼主)
    2021-01-04 16:46

    The dependencies:

       
        org.springframework
        spring-aspects
        3.1.0.RELEASE
       
    
       
        org.springframework
        spring-jdbc
        3.1.0.RELEASE
       
    

    Does the version of these (3.1.0.RELEASE) match maven variable ${spring.framework.version}. As far as I can tell that could cause a mismatch of versions and may be causing the no such field error which usually is caused by mismatching versions.

提交回复
热议问题