重构file-center的自动化配置,并增加FastDFS的实现
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user