重构file-center的自动化配置,并增加FastDFS的实现

This commit is contained in:
zlt
2019-04-16 23:45:31 +08:00
parent 2e3a030835
commit 9b3e424b04
24 changed files with 428 additions and 363 deletions
@@ -1,7 +1,10 @@
package com.central;
import com.central.file.properties.FileServerProperties;
import com.central.file.properties.OssProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
@@ -9,11 +12,10 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
* @author 作者 owen E-mail: 624191343@qq.com
*/
@EnableDiscoveryClient
@EnableConfigurationProperties(FileServerProperties.class)
@SpringBootApplication
public class FileCenterApp {
public static void main(String[] args) {
// 固定端口
SpringApplication.run(FileCenterApp.class, args);
}
}