摘要:
@Component// 1、将工具类声明为spring组件,这个必须不能忘 public class TestUtils { //2、自动注入 @Autowired private ItemService itemService; // 3、静态初使化当前类 public static TestUtils testUtils; // 4、在方法上加上注解@PostCons... 阅读全文
posted @ 2019-06-11 16:56
DHR~小白
阅读(2650)
评论(0)
推荐(0)

浙公网安备 33010602011771号