Java org.springframework.boot.SpringApplication with spring core 3.2.5.RELEASE
我将使用Java org.springframework.boot.SpringApplication with spring core 3.2.5.RELEASE,java,spring-3,hibernate3,Java,Spring 3,Hibernate3,我将使用spring3和hibernate3创建简单的rest服务。由于基于hibernate 3的遗留业务组件,我没有机会使用更高版本的spring 为此,我尝试使用SpringApplication.run,但遇到以下异常: Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoad
spring3
和hibernate3
创建简单的rest服务。由于基于hibernate 3的遗留业务组件,我没有机会使用更高版本的spring
为此,我尝试使用SpringApplication.run
,但遇到以下异常:
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.springframework.core.io.support.SpringFactoriesLoader.loadFactoryNames
是否可以将spring引导maven插件
与旧的spring版本一起使用?最好知道这方面的其他方法。Spring Boot(以及所有相关工具,例如maven插件)需要Spring v4及以上版本。请参阅官方文件
默认情况下,Spring Boot 1.3.2.BUILD-SNAPSHOT需要Java 7和Spring Framework 4.1.5或更高版本。感谢javapapo的快速回答!你知道避免spring boot的其他方法吗?这取决于你想做什么。要么迁移到Spring Boot/Spring 4 combo(无论对您的代码库意味着什么),要么尝试利用现有的Spring模块开发您的解决方案。我想使用SpringMVC(SpringREST)将是一个潜在的解决方案