import org.springframework.beans.factory.annotation.Autowired; @Autowired import org.springframework.beans.factory.annotation.Value; @Value("${student.name}") import org.springframework.stereotype.Controller; //@Controller import org.springframework.web.bind.annotation.RequestMapping; @RequestMapping("getName") import org.springframework.web.bind.annotation.ResponseBody; @ResponseBody import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest import org.junit.jupiter.api.Test; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
标签:import,springframework,context,org,test,注解,annotation From: https://www.cnblogs.com/cnetsa/p/16978170.html