开发者

spring 3.0.5-RELEASE and javaconfig

开发者 https://www.devze.com 2023-02-20 22:57 出处:网络
what is the correct maven dependency for spring 3.0.5-RELEASE and the javaconfig features (@Configuration, @Bean, etc.)?

what is the correct maven dependency for spring 3.0.5-RELEASE and the javaconfig features (@Configuration, @Bean, etc.)?

I tried this: http://mvnrepository.com/artifact/org.s开发者_如何学Gopringframework.javaconfig/spring-javaconfig

But I got the error described here: http://forum.springsource.org/showthread.php?t=74730

That thread seems to imply that javaconfig is bundled with spring 3, but when I remove the explicit spring-javaconfig dependency (1.0.0.m3) it can't find the symbols.

I'm sure I'm missing something simple...


JavaConfig is part of core Spring as of Spring 3.0. So you just need to have a dependency on spring-context.

0

精彩评论

暂无评论...
验证码 换一张
取 消