Linked Questions

1 vote
2 answers
19k views

I checked many tutorials but could not find a satisfactory answer.Does this annotation is performing Dependency injection of the properties.I have heard that this can be applied to a method,...
user1281029's user avatar
  • 1,533
0 votes
1 answer
1k views

I am new to Spring Boot and put an application together with a DemoApplication (main class) and a class called CodeChallenge. Both of these classes are in the same folder. I autowired the ...
Dog's user avatar
  • 2,936
0 votes
1 answer
964 views

I'm trying to inject messageSource bean to one my component classes. Here is part of bean xml: <context:annotation-config /> <context:component-scan base-package="com.mattis.test"/> &...
mattis's user avatar
  • 211
1 vote
2 answers
624 views

I want to @autowire SolrCrudRepository in FcSolrServiceImpl class but it gives in NPE. following is my implementation. FcSolrServiceImpl.java public class FcSolrServiceImpl<K> { @...
2787184's user avatar
  • 3,921
0 votes
0 answers
75 views

Take the following as an example public class xyz(){ @Autowired private BasicConfiguration configuration; @RequestMapping("/dynamic-configuration") public Map dynamicConfiguration() ...
NicO's user avatar
  • 691
52 votes
4 answers
36k views

I came across an example of @Autowired: public class EmpManager { @Autowired private EmpDao empDao; } I was curious about how the empDao get sets since there are no setter methods and it is ...
Anthony's user avatar
  • 1,685
13 votes
3 answers
8k views

In an interview i was asked by the interviewer that "How does Spring know where to search for Components or Beans?". As I was not aware about the internal flow details I was not able to answer the ...
Naren Reddy's user avatar
9 votes
1 answer
24k views

I have two classes public abstract class AbstractDAO<T> { private final MyExecutor<T> myExecutor; private final Class<T> clazz; public AbstractDAO(MyExecutor<T> ...
Kevin's user avatar
  • 6,370
6 votes
2 answers
10k views

The normal way without IOC containers would be: new User("Names", 22); where the parameter values here are dynamic, whereby, for example, they are fetched via a user submission form, thereby can't be ...
Program-Me-Rev's user avatar
5 votes
3 answers
15k views

I am working on a web application using Java and Spring. I'm new at Spring, so as an opportunity to learn, I was basically given an existing application and was told to extend it. I am having trouble ...
COBOL's user avatar
  • 1,041
2 votes
3 answers
7k views

I'm new in spring Framework. And actually i was doing an experiment with spring actually. Look at this HelloWorld.java: public class HelloWorld { private String messageee; public void ...
pankaj padiya's user avatar
3 votes
2 answers
6k views

I want to clarify about this: Regarding Autowiring "autodetect" In some resources, I found if "Default constructor is found, then "auto wiring constructor" applies. If not "auto wiring by type" ...
Rahul Raj's user avatar
  • 3,469
1 vote
2 answers
5k views

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www....
theJava's user avatar
  • 15.1k
5 votes
2 answers
3k views

I'm a new developper in Node.js (coming from Python), and I'm quite surprised to see that there are no decorators in Javascript. I would like to use it, however, because it greatly simplifies the code....
baptiste0928's user avatar
2 votes
3 answers
977 views

In Spring is the @Autowired annotation referred to only one object? @Autowired A object_a; @Autowired B object_b; @Autowired C object_c; and @Autowired A object_a; B object_b; C object_c; Are they ...
Alex's user avatar
  • 2,135

15 30 50 per page