Posts tagged spring

context:annotation-config for StaticApplicationContext

For some reason I’m unable to use XML configuration for spring in the current project (and thus ClassPathXmlApplicationContext) – don’t ask me why So I’ve to specify the entire configuration in code (by using StaticApplicationContext.registerSingleton). The question is – how to make StaticApplicationContext work as if “annotation-config” is specified to make application context process annotated [...]

Spring and AspectJ

For those who uses Spring 3.0.5: Spring 3.0.5 doesn’t work with aspectjweaver 1.6.10+ due to AssertionError at org.aspectj.weaver.UnresolvedType.nameToSignature! E.g. if you use aspects in your spring config with, say, jdbc:initalize-database configuration clause, most likely you’ll get assertion error in your JUnit test what uses such a config. The possible workaround would be to switch to [...]