|
@@ -3,12 +3,8 @@ package com.sooka.sponest.mobile;
|
|
|
import com.ruoyi.common.security.annotation.EnableCustomConfig;
|
|
|
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
|
|
|
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
|
|
|
-import com.sooka.sponest.mobile.remoteapi.EnableSookaFeignClients;
|
|
|
-import org.mybatis.spring.annotation.MapperScan;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
-import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
import org.springframework.boot.web.servlet.MultipartConfigFactory;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.util.unit.DataSize;
|
|
@@ -17,26 +13,23 @@ import javax.servlet.MultipartConfigElement;
|
|
|
|
|
|
@EnableCustomConfig
|
|
|
@EnableCustomSwagger2
|
|
|
-@EnableSookaFeignClients
|
|
|
-@SpringBootApplication
|
|
|
@EnableRyFeignClients
|
|
|
-@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
|
|
|
-@MapperScan("com.sooka.sponest.mobile.**.mapper")
|
|
|
+@SpringBootApplication
|
|
|
+public class SookaMobileApplication {
|
|
|
|
|
|
-public class SookaMobileApplication{
|
|
|
- public static void main(String[] args)
|
|
|
- {
|
|
|
+ public static void main(String[] args) {
|
|
|
SpringApplication.run(SookaMobileApplication.class, args);
|
|
|
System.out.println("(♥◠‿◠)ノ゙ 首佳科技 手机端 启动成功 ლ(´ڡ`ლ)゙ \n" +
|
|
|
- " __________ ____ | | _______ ____________ ____ ____ ____ _______/ |_\n"+
|
|
|
- " / ___/ _ \\ / _ \\| |/ /\\__ \\ / ___/\\____ \\ / _ \\ / \\_/ __ \\ / ___/\\ __\\\n"+
|
|
|
- " \\___ ( <_> | <_> ) < / __ \\_ \\___ \\ | |_> > <_> ) | \\ ___/ \\___ \\ | |\n"+
|
|
|
- "/____ >____/ \\____/|__|_ \\(____ / /____ >| __/ \\____/|___| /\\___ >____ > |__|\n"+
|
|
|
+ " __________ ____ | | _______ ____________ ____ ____ ____ _______/ |_\n" +
|
|
|
+ " / ___/ _ \\ / _ \\| |/ /\\__ \\ / ___/\\____ \\ / _ \\ / \\_/ __ \\ / ___/\\ __\\\n" +
|
|
|
+ " \\___ ( <_> | <_> ) < / __ \\_ \\___ \\ | |_> > <_> ) | \\ ___/ \\___ \\ | |\n" +
|
|
|
+ "/____ >____/ \\____/|__|_ \\(____ / /____ >| __/ \\____/|___| /\\___ >____ > |__|\n" +
|
|
|
" \\/ \\/ \\/ \\/ |__| \\/ \\/ \\/\n"
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
@Bean
|
|
|
- public MultipartConfigElement multipartConfigElement(){
|
|
|
+ public MultipartConfigElement multipartConfigElement() {
|
|
|
MultipartConfigFactory factory = new MultipartConfigFactory();
|
|
|
factory.setMaxFileSize(DataSize.parse("10240000KB"));
|
|
|
factory.setMaxRequestSize(DataSize.parse("10240000KB"));
|