Commit 28decfa2 authored by 高建强's avatar 高建强

item:解决移动端巡检图片上传UnknownHostException

parent 96b0f586
...@@ -10,13 +10,16 @@ import org.springframework.boot.SpringApplication; ...@@ -10,13 +10,16 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType; import org.springframework.context.annotation.FilterType;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;
import org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler; import org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler;
import com.yeejoin.amos.boot.biz.common.utils.oConvertUtils; import com.yeejoin.amos.boot.biz.common.utils.oConvertUtils;
...@@ -48,4 +51,10 @@ public class AmostEquipApplication { ...@@ -48,4 +51,10 @@ public class AmostEquipApplication {
+ "Application Amos-Biz-Boot is running! Access URLs:\n\t" + "Swagger文档: \thttp://" + ip + ":" + port + "Application Amos-Biz-Boot is running! Access URLs:\n\t" + "Swagger文档: \thttp://" + ip + ":" + port
+ path + "/doc.html\n" + "----------------------------------------------------------"); + path + "/doc.html\n" + "----------------------------------------------------------");
} }
@Bean
@LoadBalanced
RestTemplate restTemplate(){
return new RestTemplate();
}
} }
...@@ -18,6 +18,8 @@ pagehelper.params=count=countSql ...@@ -18,6 +18,8 @@ pagehelper.params=count=countSql
pagehelper.reasonable=false pagehelper.reasonable=false
pagehelper.support-methods-arguments=true pagehelper.support-methods-arguments=true
spring.main.allow-bean-definition-overriding=true
#liquibase #liquibase
spring.liquibase.change-log = classpath:/changelog/changelog-master.xml spring.liquibase.change-log = classpath:/changelog/changelog-master.xml
spring.liquibase.enabled= true spring.liquibase.enabled= true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment