摘要: 如果我们是在controller类中,要拿service中的方法,一般来说用@Autowired注解就可以 但是,如果想要在任意地方都要拿到service中的方法,使用@Autowired注解是不行的 可以写个工具类(之前在其他博客上看到的) import org.springframework.b 阅读全文
posted @ 2022-04-22 15:33 袁骞骞 阅读(83) 评论(0) 推荐(0) 编辑