首页 > 其他分享 >注解

注解

时间:2022-12-13 11:56:24浏览次数:40  
标签:import springframework context org test 注解 annotation

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

相关文章