Browse Source

解决项目启动问题

lixing 4 years ago
parent
commit
2e781e0a2f

+ 2 - 0
src/main/java/com/persagy/apm/energy/report/saasweb/service/impl/SaasWebServiceImpl.java

@@ -14,6 +14,7 @@ import io.swagger.annotations.Api;
 import org.apache.commons.lang.StringUtils;
 import org.assertj.core.util.Lists;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 
 import java.math.BigDecimal;
@@ -25,6 +26,7 @@ import java.util.stream.Collectors;
  * @version V1.0 2021/5/21 10:51 上午
  **/
 @Api(value = "运维平台service实现类")
+@Service
 public class SaasWebServiceImpl implements ISaasWebService {
     @Autowired
     SaasWebClient saasWebClient;

+ 1 - 0
src/main/resources/bootstrap.yml

@@ -2,6 +2,7 @@ spring:
   application:
     name: energy-report
 
+EUREKA_CLIENT_DEFAULT_ZONE: http://frame:123456@192.168.64.18:9931/eureka