代码修改
This commit is contained in:
@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
* @date 2022/10/20
|
||||
*/
|
||||
@FeignClient(
|
||||
value = ServerInfo.HARMONIC_PREPARE,//对应模块名
|
||||
value = ServerInfo.PREPARE_BOOT,//对应模块名
|
||||
path = "/report",//对应controller请求类
|
||||
fallbackFactory = CoustomReportFeignClientFallbackFactory.class//服务降级处理类
|
||||
)
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
* @createTime 2022/11/4 15:58
|
||||
*/
|
||||
@FeignClient(
|
||||
value = ServerInfo.HARMONIC_PREPARE,
|
||||
value = ServerInfo.PREPARE_BOOT,
|
||||
path = "/distortion",
|
||||
fallbackFactory = DistortionRateFeignClientFallbackFactory.class
|
||||
)
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
* @date 2022/10/20
|
||||
*/
|
||||
@FeignClient(
|
||||
value = ServerInfo.HARMONIC_PREPARE,//对应模块名
|
||||
value = ServerInfo.PREPARE_BOOT,//对应模块名
|
||||
path = "/normalLimit",//对应controller请求类
|
||||
fallbackFactory = NormalFeignClientFallbackFactory.class//服务降级处理类
|
||||
)
|
||||
|
||||
@@ -10,12 +10,12 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
/**
|
||||
* 自定义报表
|
||||
* 污区数据(日,月,年)
|
||||
* @author qijian
|
||||
* @date 2022/10/20
|
||||
*/
|
||||
@FeignClient(
|
||||
value = ServerInfo.HARMONIC_PREPARE,//对应模块名
|
||||
value = ServerInfo.PREPARE_BOOT,//对应模块名
|
||||
path = "/pollution",//对应controller请求类
|
||||
fallbackFactory = PollutionFeignClientFallbackFactory.class//服务降级处理类
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
FROM openjdk:8-jdk-alpine
|
||||
ADD target/harmonicprepare.jar harmonicprepare.jar
|
||||
ENTRYPOINT ["java","-jar","/harmonicprepare.jar"]
|
||||
ADD target/prepareboot.jar prepareboot.jar
|
||||
ENTRYPOINT ["java","-jar","/prepareboot.jar"]
|
||||
EXPOSE 10221
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>harmonicprepare</finalName>
|
||||
<finalName>prepareboot</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
||||
Reference in New Issue
Block a user