Search:

Type: Posts; User: sakura

Search: Search took 0.08 seconds.

  1. Re: Spring autowired variable is null when accessed from another class

    Thank you. I made the following changes:-

    test-beans.xml


    ...
    <bean id="a"
    class="com.example.A" init-method="init">
    <property name="file" value="sample.properties"/>
    </bean>
  2. Spring autowired variable is null when accessed from another class

    Here's the problem
    I have a class A

    A.java


    public class A {

    private Properties properties = new Properties();
Results 1 to 2 of 2