zdm il y a 5 ans
Parent
commit
0b87557ebd

+ 20 - 0
pom.xml

@ -100,6 +100,26 @@
    </dependency>
</dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <!-- 指定该Main Class为全局的唯一入口 -->
                    <mainClass>com.yihu.wlyy.Application</mainClass>
                    <layout>ZIP</layout>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

+ 1 - 1
src/main/java/com/yihu/wlyy/controller/FileDownloadController.java

@ -57,7 +57,7 @@ public class FileDownloadController {
        return envelop;
    }
    @Scheduled(cron="0 0 22 * * ?")
    @Scheduled(cron="0 0 23 * * ?")
    public void fileDownloadJob(){
        try {
            ftpFilesUtil.uploadFtpFileJobByDate(URL,PORT,USER,PWD);

+ 2 - 2
src/main/resources/application.yml

@ -1,5 +1,5 @@
server:
  port: 8011
  port: 8098
  max-http-header-size: 10485760
file:
  default_path: /data/rec2/
@ -19,7 +19,7 @@ wlyy:
spring:
  profiles: test
wlyy:
  url: http://ehr.yihu.com/wlyy/
  url: http://172.26.0.118:9092/wlyy/
---
spring: