feat():解决RuleDataServiceImpl依赖循环 与 AsyncLogService注入不到报错

yuan
yuan 2024-08-23 22:13:21 +08:00
parent e94800c28a
commit e7ce39d31b
3 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -9,6 +9,9 @@ target/
*.iml *.iml
*.ipr *.ipr
### Logs ###
logs
### Eclipse ### ### Eclipse ###
.apt_generated .apt_generated
.classpath .classpath

View File

@ -1,5 +1,6 @@
package com.muyu; package com.muyu;
import com.muyu.common.security.annotation.EnableMyFeignClients;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
@ -11,6 +12,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @Date2024/8/22 7:49 * @Date2024/8/22 7:49
*/ */
@SpringBootApplication @SpringBootApplication
@EnableMyFeignClients
public class MuYuRuleDataApplication { public class MuYuRuleDataApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(MuYuRuleDataApplication.class, args); SpringApplication.run(MuYuRuleDataApplication.class, args);

View File

@ -29,8 +29,6 @@ public class RuleDataServiceImpl
extends ServiceImpl<RuleDataMapper, RuleData> extends ServiceImpl<RuleDataMapper, RuleData>
implements RuleDataService { implements RuleDataService {
@Autowired private RuleDataMapper ruleDataMapper;
@Autowired private RuleDataService ruleDataService;
@Autowired private RuleDataInfoService ruleDataInfoService; @Autowired private RuleDataInfoService ruleDataInfoService;
@Override @Override