configuration « Annotation « Spring Q&A





1. How do I ensure dependent configurations are initialized with Spring @Configuration annotation?    stackoverflow.com

I am trying to use @Configuration annotations to wire up my application but I keep getting a NullPointerException in one of the initializers because the bean it refers to is not ...

2. Spring annotations configuration looks like overhead    stackoverflow.com

I just faced,that in order to use specific annotations for Spring Security,
I should explicitely allow them in my config(applicationContext.xml)
Example:

<sec:global-method-security secured-annotations="enabled" />
<sec:global-method-security jsr250-annotations="enabled" />
...
What advantages do you see in approach of ...

3. Annotations based configuration hierarchy    stackoverflow.com

We use @Configuration classes to do Java based Spring configuration. I am trying to set up a Hierarchy of AnnotationConfigApplicationContext(s). It seems to work. As I can Autowire beans from parent ...

4. Simple Configuration Question on Annotation Configs    forum.springsource.org

Simple Configuration Question on Annotation Configs We are using JPA/Hibernate and the Transactions via AOP, however, we are not using any annotations (all JPA configuration is in persitence and orm files ...

5. Annotations based configurations    forum.springsource.org

Annotations based configurations Hi, I am new to spring; and most of the times use it by configuring via XML. Today I tried to move towards the annotations and what i ...

6. Getting the behaviour of @Configurable without annotations    forum.springsource.org

Hi, In the Spring reference documentation, precisely in 6.8.1. Using AspectJ to dependency inject domain objects with Spring, Spring allows us to inject any object outside of the control of any ...

7. Annotation configuration and mocks    forum.springsource.org

Annotation configuration and mocks I am considering using the annotation config in Spring 2.5. I have read that you can annotate fields and not have any setter, preserving encapsulation. That sounds ...

8. Configurable annotation    forum.springsource.org

Configurable annotation Hi, I'm trying to get Configurable annotation to work in equinox for a standalone application (no webapp or eclipse RCP). I use the spring-agent.jar at startup and I configured ...

9. Annotation Vs Java Configuration    forum.springsource.org

Annotation Vs Java Configuration Hi I'm Josh. I 'm working on J2EE application using Spring 2.5. What a I'm wondering is that performance on bean configuration between annotation base and Java ...





10. Annotation Configuration Confusion    forum.springsource.org

Annotation Configuration Confusion I recently attended Keith Donald's presentation on "Developing Rich Web Applications with Spring." Keith demonstrated some annotation based configuration capabilities with Spring MVC that I am having a ...

11. New annotation-based configuration problem    forum.springsource.org

New annotation-based configuration problem Hi all, I'm facing a problem which now is biting back times and again. I have got a JAR project (fido-core) which contains the 'kernel' of the ...

12. Annotation Configurations?    forum.springsource.org

Annotation Configurations? Hi, I am trying to use the @Endpoint and @PayloadRoot annotations and am having a bit of difficulty... I have a class that is annotated as follows: Code: @Endpoint ...

13. Adoption of annotation style configuration    forum.springsource.org

Adoption of annotation style configuration Hello, I've been developing in Spring for about 2.5 years now and have a fairly large codebase. I want to preface this post by saying I ...

14. Annotation based VS java based configuration    forum.springsource.org

Spring 3.x allows a mix of XML-driven, annotation-assisted, and Java-driven configuration. Your term "annotation based configuration", as opposed to "java based configuration" might be close to the term "annotation-assisted" (which I ...