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

后端 未结 4 396
感情败类
感情败类 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 17:05

    I have had the same problem, and it turned out there was indeed a version mismatch, the problem with mine was that i used a server variable, in the form of ${server.env}, and it was this that gave the problem. Since my spring-expression version was 3.0.5 still. You should try adding these to your pom :

            
                org.springframework
                spring-expression
                ${version.spring.framework}
            
            
                org.springframework
                spring-beans
                ${version.spring.framework}
                       
    

提交回复
热议问题