feat():修改未找到NacosServiceService异常

master
Yueng 2024-08-09 23:11:54 +08:00
parent 2f853c56ac
commit a8c752c7f7
3 changed files with 28 additions and 11 deletions

View File

@ -2,8 +2,10 @@ package com.muyu.cloud.pay;
import com.muyu.common.security.annotation.EnableCustomConfig;
import com.muyu.common.security.annotation.EnableMyFeignClients;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
/**
* @Authoryang
@ -12,11 +14,16 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @nameMuYuPayAppliction
* @Date2024/7/31 21:25
*/
@Log4j2
@EnableCustomConfig
@EnableMyFeignClients
@SpringBootApplication
public class MuYuPayApplication {
public static void main(String[] args) {
SpringApplication.run(MuYuPayApplication.class,args);
ConfigurableApplicationContext applicationContext = SpringApplication.run(MuYuPayApplication.class, args);
String[] beanDefinitionNames = applicationContext.getBeanFactory().getBeanDefinitionNames();
for (String beanDefinitionName : beanDefinitionNames) {
log.info("beanDefinitionName:{}",beanDefinitionName);
}
}
}

View File

@ -1,5 +1,6 @@
package com.muyu.cloud.pay.controller;
import com.dtflys.forest.springboot.annotation.ForestScannerRegister;
import com.muyu.cloud.pay.domain.OrderPayCustomer;
import com.muyu.cloud.pay.domain.req.CustomerListReq;
import com.muyu.cloud.pay.domain.resp.CustomerResp;
@ -10,7 +11,9 @@ import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@ -23,18 +26,22 @@ import java.util.List;
* @nameOrderPayCustomerController
* @Date2024/8/5 20:05
*/
@Slf4j
@Log4j2
@RestController
@RequestMapping("/customer")
@RequiredArgsConstructor
@Tag(name = "客户控制层",description = "进行客户管理,查看等相关操作")
public class OrderPayCustomerController {
public OrderPayCustomerController (){
log.info("forest扫描路径:{}", ForestScannerRegister.getBasePackages());
}
/**
*
*/
// @NotNull
private final OrderPayCustomerService orderPayCustomerService;
@Autowired
private OrderPayCustomerService orderPayCustomerService;
/**
*

View File

@ -5,22 +5,24 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.cloud.pay.domain.OrderPayCustomer;
import com.muyu.cloud.pay.domain.OrderPayInfo;
import com.muyu.cloud.pay.domain.req.CustomerListReq;
import com.muyu.cloud.pay.domain.resp.CustomerOrderPaySimpleResp;
import com.muyu.cloud.pay.domain.resp.CustomerResp;
import com.muyu.cloud.pay.mapper.OrderPayCustomerMapper;
import com.muyu.cloud.pay.service.OrderPayCustomerService;
import com.muyu.cloud.pay.service.OrderPayService;
import com.muyu.common.core.enums.SysPayType;
import com.muyu.common.nacos.service.NacosServiceService;
import org.apache.catalina.mapper.Mapper;
import lombok.extern.log4j.Log4j2;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
@ -30,14 +32,15 @@ import java.util.stream.Collectors;
* @nameimpl
* @Date2024/8/5 19:56
*/
@Log4j2
@Service
public class OrderPayCustomerServiceImpl
extends ServiceImpl<OrderPayCustomerMapper,OrderPayCustomer>
implements OrderPayCustomerService {
@Resource(type = OrderPayServiceImpl.class)
@Autowired
private OrderPayService orderPayService;
@Resource(type = NacosServiceService.class)
@Autowired
private NacosServiceService nacosServiceService;
/**
*