摘要: 1、定义对象 package com.wbb.entity; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Compo 阅读全文
posted @ 2021-07-19 16:15 neoQVQ 阅读(325) 评论(0) 推荐(0)
摘要: 1、直接注入 @autowired private XXXService xxxService; 2、也可以注入属性的set方法上 @RestController public class DemoController { private DemoService demoService; @Auto 阅读全文
posted @ 2021-07-19 15:09 neoQVQ 阅读(81) 评论(0) 推荐(0)