处理代码生成多租户支持
minio上传文件拼接字符bug
This commit is contained in:
+18
-2
@@ -36,6 +36,10 @@ public class GatewayRoutersConfiguration {
|
||||
|
||||
public static String ROUTE_GROUP;
|
||||
|
||||
public static String USERNAME;
|
||||
|
||||
public static String PASSWORD;
|
||||
|
||||
/**
|
||||
* 路由配置文件数据获取方式yml,nacos,database
|
||||
*/
|
||||
@@ -62,8 +66,15 @@ public class GatewayRoutersConfiguration {
|
||||
}
|
||||
|
||||
@Value("${jero.route.config.data-type}")
|
||||
public void setDataType(String dataType) {
|
||||
DATA_TYPE = dataType;
|
||||
public void setDataType(String dataType) { DATA_TYPE = dataType; }
|
||||
|
||||
@Value("${spring.cloud.nacos.config.username}")
|
||||
public void setUsername(String username) {
|
||||
USERNAME = username;
|
||||
}
|
||||
@Value("${spring.cloud.nacos.config.password}")
|
||||
public void setPassword(String password) {
|
||||
PASSWORD = password;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +89,11 @@ public class GatewayRoutersConfiguration {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 映射接口文档默认地址(通过9999端口直接访问)
|
||||
* @param indexHtml
|
||||
* @return
|
||||
*/
|
||||
@Bean
|
||||
public RouterFunction<ServerResponse> indexRouter(@Value("classpath:/META-INF/resources/doc.html") final org.springframework.core.io.Resource indexHtml) {
|
||||
return route(GET("/"), request -> ok().contentType(MediaType.TEXT_HTML).syncBody(indexHtml));
|
||||
|
||||
Reference in New Issue
Block a user