注解

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;
posted @ 2022-12-13 11:47  cnetsa  阅读(8)  评论(0编辑  收藏  举报