Browse Source

Gateway动态文档

test
smallchill 6 years ago
parent
commit
8002398286
  1. 2
      blade-gateway/src/main/java/org/springblade/gateway/props/RouteProperties.java
  2. 2
      blade-ops/blade-resource/src/main/java/org/springblade/resource/config/OssConfiguration.java
  3. 8
      doc/nacos/blade-dev.yaml

2
blade-gateway/src/main/java/org/springblade/gateway/props/RouteProperties.java

@ -18,6 +18,7 @@ package org.springblade.gateway.props;
import lombok.Data; import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -28,6 +29,7 @@ import java.util.List;
* @author Chill * @author Chill
*/ */
@Data @Data
@RefreshScope
@ConfigurationProperties("blade.document") @ConfigurationProperties("blade.document")
public class RouteProperties { public class RouteProperties {

2
blade-ops/blade-resource/src/main/java/org/springblade/resource/config/OssConfiguration.java

@ -20,7 +20,6 @@ import lombok.AllArgsConstructor;
import org.springblade.core.oss.props.OssProperties; import org.springblade.core.oss.props.OssProperties;
import org.springblade.resource.builder.OssBuilder; import org.springblade.resource.builder.OssBuilder;
import org.springblade.resource.mapper.OssMapper; import org.springblade.resource.mapper.OssMapper;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -31,7 +30,6 @@ import org.springframework.context.annotation.Configuration;
*/ */
@Configuration @Configuration
@AllArgsConstructor @AllArgsConstructor
@EnableConfigurationProperties(OssProperties.class)
public class OssConfiguration { public class OssConfiguration {
private OssProperties ossProperties; private OssProperties ossProperties;

8
doc/nacos/blade-dev.yaml

@ -20,3 +20,11 @@ blade:
url: jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8 url: jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8
username: root username: root
password: root password: root
document:
resources:
- name: 授权模块
location: /blade-auth
- name: 工作台模块
location: /blade-desk
- name: 系统模块
location: /blade-system

Loading…
Cancel
Save