修正 starter 的 spring.factories 文件, 设定autoconfiguration
This commit is contained in:
@ -2,12 +2,8 @@ package com.chinaunicom.mall.ebtp.cloud.restful.example;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
import com.chinaunicom.mall.ebtp.cloud.mvc.starter.advice.BusinessExceptionHandlerAdvice;
|
||||
|
||||
@SpringBootApplication
|
||||
@Import(BusinessExceptionHandlerAdvice.class)
|
||||
public class RestfulApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -2,12 +2,8 @@ package com.chinaunicom.mall.ebtp.cloud.swagger.example;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
import com.chinaunicom.mall.ebtp.cloud.swagger.starter.SwaggerStarterConfiguration;
|
||||
|
||||
@SpringBootApplication
|
||||
@Import(SwaggerStarterConfiguration.class)
|
||||
public class SwaggerExampleApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SwaggerExampleApplication.class, args);
|
||||
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.apollo.stater.ApolloStarterConfiguration
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.eureka.starter.EurekaStarterConfiguration
|
@ -1,5 +1,6 @@
|
||||
package com.chinaunicom.mall.ebtp.cloud.feign.starter;
|
||||
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@ -17,6 +18,7 @@ public class FeignStarterConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(RequestInterceptor.class)
|
||||
public RequestInterceptor requestInterceptor() {
|
||||
return requestTemplate -> {
|
||||
requestTemplate.header("user", "mall");
|
||||
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.feign.starter.FeignStarterConfiguration
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.jpa.starter.JpaStarterConfiguration
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.kafka.starter.KafkaStarterConfiguration
|
@ -1,13 +0,0 @@
|
||||
package org.mall.ebtp.cloud.log.starter;
|
||||
|
||||
/**
|
||||
* Hello world!
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
System.out.println( "Hello World!" );
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package org.mall.ebtp.cloud.log.starter;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
|
||||
@Configuration
|
||||
@PropertySource("classpath:log-configuration.properties")
|
||||
public class LogStarterConfiguration {
|
||||
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
org.mall.ebtp.cloud.log.starter.LogStarterConfiguration
|
@ -1,9 +1,11 @@
|
||||
package com.chinaunicom.mall.ebtp.cloud.mvc.starter;
|
||||
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
|
||||
@Configuration
|
||||
@ComponentScan(basePackages = "com.chinaunicom.mall.ebtp.cloud.mvc.starter")
|
||||
@PropertySource("classpath:mcv-configuration.properties")
|
||||
public class MvcStarterConfiguration {
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.mvc.starter.MvcStarterConfiguration
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.office.starter.OfficeStarterConfiguration
|
@ -1,13 +0,0 @@
|
||||
package com.chinaunicom.mall.ebtp.cloud.seata.starter;
|
||||
|
||||
/**
|
||||
* Hello world!
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
System.out.println( "Hello World!" );
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.chinaunicom.mall.ebtp.cloud.seata.starter;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
|
||||
@Configuration
|
||||
@PropertySource("classpath:seata-configuration.properties")
|
||||
public class SeataStarterConfiguration {
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.seata.starter.SeataStarterConfiguration
|
@ -0,0 +1,7 @@
|
||||
unifast.swagger.basePackage=com.chinaunicom.mall.ebtp.cloud
|
||||
unifast.swagger.title=\u6d4b\u8bd5\u63a5\u53e3\u6587\u6863
|
||||
unifast.swagger.contactName=\u5409\u6797\u9879\u76ee\u7ec4
|
||||
unifast.swagger.contactUrl=http://chinaunicom.com
|
||||
unifast.swagger.contactEmail=chinaunicom@chinaunicom.com
|
||||
unifast.swagger.version=0.0.1
|
||||
unifast.swagger.description=\u7840\u540e\u53f0\u529f\u80fd\u6846\u67b6
|
@ -9,5 +9,4 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
@EnableSwagger2
|
||||
@PropertySource("classpath:swagger-configuration.properties")
|
||||
public class SwaggerStarterConfiguration {
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
# AutoConfiguration
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.chinaunicom.mall.ebtp.cloud.swagger.starter.SwaggerStarterConfiguration
|
Reference in New Issue
Block a user