@Autowired objects getting null value

后端 未结 6 1911
情话喂你
情话喂你 2021-01-12 04:29

Trying to set up a project but fail at Autowiring objects through Spring.

package se.hsr.web;

public class TestRunner {

    public static void main(String[         


        
6条回答
  •  深忆病人
    2021-01-12 04:54

    You need this in your Spring configuration for autowiring to work

    xmlns:context="http://www.springframework.org/schema/context" 
    ....
    
    

提交回复
热议问题