autowired
How to autowire a bean inside a class that is not a configured bean?
Forgive me if I don\'t get the terminology correct. My situation is thus: I have a class, let\'s call it TheClass. Inside this class is a TheData object.[详细]
2023-02-03 17:36 分类:问答Using Proguard with a library has a @Service bean which should autowire
I have a library Common.License which I am obfuscating with Proguard: <plugin> <groupId>com.pyx4me</groupId>[详细]
2023-01-29 18:07 分类:问答Using Proguard with a library that uses Spring @Autowired by name
I\'m using Proguard to obfuscate a library that has several @Autowired fields.The obfuscator is renaming those class fields (because they are private/internal to the class) and thus my bean is failing[详细]
2023-01-29 12:10 分类:问答spring-nullpointerexception- cant access autowired annotated service (or dao) in a no-annotations class
I have this problem that I cannot fix. From my @Controller, i can easily access my autowired @Service class and play with it no problem.[详细]
2023-01-27 17:14 分类:问答Spring:define bean's property(ref to other bean) as optional
Have two bean definitions: file a.xml <bean id=\"A\" class=\"com.A\"> <property name=\"bClass\" ref=\"B\"/>[详细]
2023-01-26 17:14 分类:问答Spring: object not being autowired, works fine in another class
I\'m creating an util class, but the problem is that a service class is not being autowired. The autowired class is also used elsewhere, so I just copied the autowire code.[详细]
2023-01-25 06:37 分类:问答Spring @Autowired in Servlet
I am using Spring framework (2.5.4) in my app with Load time weaving and everything works fine everywhere (in Spring beans, in non-Spring entities), except when I try to autowire field in a servlet an[详细]
2023-01-24 22:45 分类:问答Spring JUnit4 manual-/auto-wiring dilemma
I ran into an issue that can only be explained with my fundamental lack of understanding of Spring\'s IoC container facilities and context setup, so I would ask for clarification regarding this.[详细]
2023-01-23 23:53 分类:问答what are @Repository and @Autowired used for. (Spring)
I am learning java for 3 months and sometimes i can not understand the usage purpose of something. one topic was dependency injection and spring beans i figured out the finally =)[详细]
2023-01-20 14:38 分类:问答injecting derived property for @Repository bean without @Autowired in super class
I would like to use @Repository spr开发者_开发百科ing annotation to avoid adding bean in context.xml.[详细]
2023-01-18 06:57 分类:问答