7 files deleted
3 files added
1 files renamed
16 files modified
| | |
| | | |
| | | # copy sql |
| | | echo "begin copy sql " |
| | | cp ../sql/ry_20231130.sql ./mysql/db |
| | | cp ../sql/ry_config_20231204.sql ./mysql/db |
| | | cp ../sql/ry_20240629.sql ./mysql/db |
| | | cp ../sql/ry_config_20240829.sql ./mysql/db |
| | | |
| | | # copy html |
| | | echo "begin copy html " |
| | |
| | | <spring-cloud-alibaba.version>2021.0.5.0</spring-cloud-alibaba.version>
|
| | | <spring-framework.version>5.3.33</spring-framework.version>
|
| | | <spring-boot-admin.version>2.7.15</spring-boot-admin.version>
|
| | | <swagger.fox.version>3.0.0</swagger.fox.version>
|
| | | <swagger.core.version>1.6.2</swagger.core.version>
|
| | | <tobato.version>1.27.2</tobato.version>
|
| | | <kaptcha.version>2.3.3</kaptcha.version>
|
| | | <pagehelper.boot.version>2.0.0</pagehelper.boot.version>
|
| | |
| | | <jjwt.version>0.9.1</jjwt.version>
|
| | | <minio.version>8.2.2</minio.version>
|
| | | <poi.version>4.1.2</poi.version>
|
| | | <springdoc.version>1.6.9</springdoc.version>
|
| | | <transmittable-thread-local.version>2.14.4</transmittable-thread-local.version>
|
| | | </properties>
|
| | |
|
| | |
| | | <version>${tobato.version}</version>
|
| | | </dependency>
|
| | |
|
| | | <!-- Swagger 依赖配置 -->
|
| | | <!-- Springdoc webmvc 依赖配置 -->
|
| | | <dependency>
|
| | | <groupId>io.swagger</groupId>
|
| | | <artifactId>swagger-models</artifactId>
|
| | | <version>${swagger.core.version}</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>io.swagger</groupId>
|
| | | <artifactId>swagger-annotations</artifactId>
|
| | | <version>${swagger.core.version}</version>
|
| | | <groupId>org.springdoc</groupId>
|
| | | <artifactId>springdoc-openapi-ui</artifactId>
|
| | | <version>${springdoc.version}</version>
|
| | | </dependency>
|
| | |
|
| | | <!-- 验证码 -->
|
| | |
| | | <artifactId>javax.servlet-api</artifactId>
|
| | | </dependency>
|
| | |
|
| | | <!-- Swagger -->
|
| | | <dependency>
|
| | | <groupId>io.swagger</groupId>
|
| | | <artifactId>swagger-annotations</artifactId>
|
| | | </dependency>
|
| | |
|
| | | </dependencies>
|
| | |
|
| | | </project>
|
| | |
| | | <artifactId>spring-boot-starter-web</artifactId>
|
| | | </dependency>
|
| | |
|
| | | <!-- Swagger -->
|
| | | <!-- SpringDoc webmvc -->
|
| | | <dependency>
|
| | | <groupId>io.springfox</groupId>
|
| | | <artifactId>springfox-swagger2</artifactId>
|
| | | <version>${swagger.fox.version}</version>
|
| | | <groupId>org.springdoc</groupId>
|
| | | <artifactId>springdoc-openapi-ui</artifactId>
|
| | | </dependency>
|
| | |
|
| | | </dependencies>
|
| New file |
| | |
| | | package com.ruoyi.common.swagger.config; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | import com.ruoyi.common.swagger.config.properties.SpringDocProperties; |
| | | import io.swagger.v3.oas.models.Components; |
| | | import io.swagger.v3.oas.models.OpenAPI; |
| | | import io.swagger.v3.oas.models.info.Info; |
| | | import io.swagger.v3.oas.models.security.SecurityRequirement; |
| | | import io.swagger.v3.oas.models.security.SecurityScheme; |
| | | import io.swagger.v3.oas.models.servers.Server; |
| | | |
| | | /** |
| | | * Swagger 文档配置 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @EnableConfigurationProperties(SpringDocProperties.class) |
| | | @ConditionalOnProperty(name = "springdoc.api-docs.enabled", havingValue = "true", matchIfMissing = true) |
| | | public class SpringDocAutoConfiguration |
| | | { |
| | | @Bean |
| | | @ConditionalOnMissingBean(OpenAPI.class) |
| | | public OpenAPI openApi(SpringDocProperties properties) |
| | | { |
| | | return new OpenAPI().components(new Components() |
| | | // 设置认证的请求头 |
| | | .addSecuritySchemes("apikey", securityScheme())) |
| | | .addSecurityItem(new SecurityRequirement().addList("apikey")) |
| | | .info(convertInfo(properties.getInfo())) |
| | | .servers(servers(properties.getGatewayUrl())); |
| | | } |
| | | |
| | | public SecurityScheme securityScheme() |
| | | { |
| | | return new SecurityScheme().type(SecurityScheme.Type.APIKEY) |
| | | .name("Authorization") |
| | | .in(SecurityScheme.In.HEADER) |
| | | .scheme("Bearer"); |
| | | } |
| | | |
| | | private Info convertInfo(SpringDocProperties.InfoProperties infoProperties) |
| | | { |
| | | Info info = new Info(); |
| | | info.setTitle(infoProperties.getTitle()); |
| | | info.setDescription(infoProperties.getDescription()); |
| | | info.setContact(infoProperties.getContact()); |
| | | info.setLicense(infoProperties.getLicense()); |
| | | info.setVersion(infoProperties.getVersion()); |
| | | return info; |
| | | } |
| | | |
| | | public List<Server> servers(String gatewayUrl) |
| | | { |
| | | List<Server> serverList = new ArrayList<>(); |
| | | serverList.add(new Server().url(gatewayUrl)); |
| | | return serverList; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.common.swagger.config.properties; |
| | | |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.boot.context.properties.NestedConfigurationProperty; |
| | | import io.swagger.v3.oas.models.info.Contact; |
| | | import io.swagger.v3.oas.models.info.License; |
| | | |
| | | /** |
| | | * Swagger 配置属性 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @ConfigurationProperties(prefix = "springdoc") |
| | | public class SpringDocProperties |
| | | { |
| | | /** |
| | | * 网关 |
| | | */ |
| | | private String gatewayUrl; |
| | | |
| | | /** |
| | | * 文档基本信息 |
| | | */ |
| | | @NestedConfigurationProperty |
| | | private InfoProperties info = new InfoProperties(); |
| | | |
| | | /** |
| | | * <p> |
| | | * 文档的基础属性信息 |
| | | * </p> |
| | | * |
| | | * @see io.swagger.v3.oas.models.info.Info |
| | | * |
| | | * 为了 springboot 自动生产配置提示信息,所以这里复制一个类出来 |
| | | */ |
| | | public static class InfoProperties |
| | | { |
| | | /** |
| | | * 标题 |
| | | */ |
| | | private String title = null; |
| | | |
| | | /** |
| | | * 描述 |
| | | */ |
| | | private String description = null; |
| | | |
| | | /** |
| | | * 联系人信息 |
| | | */ |
| | | @NestedConfigurationProperty |
| | | private Contact contact = null; |
| | | |
| | | /** |
| | | * 许可证 |
| | | */ |
| | | @NestedConfigurationProperty |
| | | private License license = null; |
| | | |
| | | /** |
| | | * 版本 |
| | | */ |
| | | private String version = null; |
| | | |
| | | public String getTitle() |
| | | { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(String title) |
| | | { |
| | | this.title = title; |
| | | } |
| | | |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | |
| | | public Contact getContact() |
| | | { |
| | | return contact; |
| | | } |
| | | |
| | | public void setContact(Contact contact) |
| | | { |
| | | this.contact = contact; |
| | | } |
| | | |
| | | public License getLicense() |
| | | { |
| | | return license; |
| | | } |
| | | |
| | | public void setLicense(License license) |
| | | { |
| | | this.license = license; |
| | | } |
| | | |
| | | public String getVersion() |
| | | { |
| | | return version; |
| | | } |
| | | |
| | | public void setVersion(String version) |
| | | { |
| | | this.version = version; |
| | | } |
| | | } |
| | | |
| | | public String getGatewayUrl() |
| | | { |
| | | return gatewayUrl; |
| | | } |
| | | |
| | | public void setGatewayUrl(String gatewayUrl) |
| | | { |
| | | this.gatewayUrl = gatewayUrl; |
| | | } |
| | | |
| | | public InfoProperties getInfo() |
| | | { |
| | | return info; |
| | | } |
| | | |
| | | public void setInfo(InfoProperties info) |
| | | { |
| | | this.info = info; |
| | | } |
| | | } |
| | |
| | | # com.ruoyi.common.swagger.config.SwaggerAutoConfiguration
|
| | | # com.ruoyi.common.swagger.config.SwaggerWebConfiguration
|
| | | # com.ruoyi.common.swagger.config.SwaggerBeanPostProcessor
|
| | | com.ruoyi.common.swagger.config.SpringDocAutoConfiguration |
| | |
| | | <artifactId>ruoyi-common-redis</artifactId>
|
| | | </dependency>
|
| | |
|
| | | <!-- Swagger -->
|
| | | <!-- Springdoc -->
|
| | | <dependency>
|
| | | <groupId>io.springfox</groupId>
|
| | | <artifactId>springfox-swagger-ui</artifactId>
|
| | | <version>${swagger.fox.version}</version>
|
| | | </dependency>
|
| | | <dependency>
|
| | | <groupId>io.springfox</groupId>
|
| | | <artifactId>springfox-swagger2</artifactId>
|
| | | <version>${swagger.fox.version}</version>
|
| | | <groupId>org.springdoc</groupId>
|
| | | <artifactId>springdoc-openapi-webflux-ui</artifactId>
|
| | | <version>${springdoc.version}</version>
|
| | | </dependency>
|
| | |
|
| | | </dependencies>
|
| New file |
| | |
| | | package com.ruoyi.gateway.config; |
| | | |
| | | import java.util.Set; |
| | | import java.util.stream.Collectors; |
| | | import org.springdoc.core.AbstractSwaggerUiConfigProperties; |
| | | import org.springdoc.core.SwaggerUiConfigProperties; |
| | | import org.springframework.beans.factory.InitializingBean; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.cloud.client.discovery.DiscoveryClient; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import com.alibaba.nacos.client.naming.event.InstancesChangeEvent; |
| | | import com.alibaba.nacos.common.notify.Event; |
| | | import com.alibaba.nacos.common.notify.NotifyCenter; |
| | | import com.alibaba.nacos.common.notify.listener.Subscriber; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | |
| | | /** |
| | | * SpringDoc配置类 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Configuration(proxyBeanMethods = false) |
| | | @ConditionalOnProperty(value = "springdoc.api-docs.enabled", matchIfMissing = true) |
| | | public class SpringDocConfig implements InitializingBean |
| | | { |
| | | @Autowired |
| | | private SwaggerUiConfigProperties swaggerUiConfigProperties; |
| | | |
| | | @Autowired |
| | | private DiscoveryClient discoveryClient; |
| | | |
| | | /** |
| | | * 在初始化后调用的方法 |
| | | */ |
| | | @Override |
| | | public void afterPropertiesSet() |
| | | { |
| | | NotifyCenter.registerSubscriber(new SwaggerDocRegister(swaggerUiConfigProperties, discoveryClient)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Swagger文档注册器 |
| | | */ |
| | | class SwaggerDocRegister extends Subscriber<InstancesChangeEvent> |
| | | { |
| | | @Autowired |
| | | private SwaggerUiConfigProperties swaggerUiConfigProperties; |
| | | |
| | | @Autowired |
| | | private DiscoveryClient discoveryClient; |
| | | |
| | | private final static String[] EXCLUDE_ROUTES = new String[] { "ruoyi-gateway", "ruoyi-auth", "ruoyi-file", "ruoyi-monitor" }; |
| | | |
| | | public SwaggerDocRegister(SwaggerUiConfigProperties swaggerUiConfigProperties, DiscoveryClient discoveryClient) |
| | | { |
| | | this.swaggerUiConfigProperties = swaggerUiConfigProperties; |
| | | this.discoveryClient = discoveryClient; |
| | | } |
| | | |
| | | /** |
| | | * 事件回调方法,处理InstancesChangeEvent事件 |
| | | * @param event 事件对象 |
| | | */ |
| | | @Override |
| | | public void onEvent(InstancesChangeEvent event) |
| | | { |
| | | Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> swaggerUrlSet = discoveryClient.getServices() |
| | | .stream() |
| | | .flatMap(serviceId -> discoveryClient.getInstances(serviceId).stream()) |
| | | .filter(instance -> !StringUtils.equalsAnyIgnoreCase(instance.getServiceId(), EXCLUDE_ROUTES)) |
| | | .map(instance -> { |
| | | AbstractSwaggerUiConfigProperties.SwaggerUrl swaggerUrl = new AbstractSwaggerUiConfigProperties.SwaggerUrl(); |
| | | swaggerUrl.setName(instance.getServiceId()); |
| | | swaggerUrl.setUrl(String.format("/%s/v3/api-docs", instance.getServiceId())); |
| | | return swaggerUrl; |
| | | }) |
| | | .collect(Collectors.toSet()); |
| | | |
| | | swaggerUiConfigProperties.setUrls(swaggerUrlSet); |
| | | } |
| | | |
| | | /** |
| | | * 订阅类型方法,返回订阅的事件类型 |
| | | * @return 订阅的事件类型 |
| | | */ |
| | | @Override |
| | | public Class<? extends Event> subscribeType() |
| | | { |
| | | return InstancesChangeEvent.class; |
| | | } |
| | | } |
| | |
| | | |
| | | private Mono<Void> unauthorizedResponse(ServerWebExchange exchange, String msg) |
| | | { |
| | | log.error("[鉴权异常处理]请求路径:{}", exchange.getRequest().getPath()); |
| | | log.error("[鉴权异常处理]请求路径:{},错误信息:{}", exchange.getRequest().getPath(), msg); |
| | | return ServletUtils.webFluxResponseWriter(exchange.getResponse(), msg, HttpStatus.UNAUTHORIZED); |
| | | } |
| | | |
| | |
| | | <groupId>org.springframework.boot</groupId>
|
| | | <artifactId>spring-boot-starter-actuator</artifactId>
|
| | | </dependency>
|
| | | |
| | | <!-- SpringBoot Web -->
|
| | | <dependency>
|
| | | <groupId>org.springframework.boot</groupId>
|
| | | <artifactId>spring-boot-starter-web</artifactId>
|
| | | </dependency>
|
| | |
|
| | | <!-- FastDFS -->
|
| | | <dependency>
|
| | |
| | | <dependency>
|
| | | <groupId>com.ruoyi</groupId>
|
| | | <artifactId>ruoyi-api-system</artifactId>
|
| | | </dependency>
|
| | | |
| | | <!-- RuoYi Common Swagger -->
|
| | | <dependency>
|
| | | <groupId>com.ruoyi</groupId>
|
| | | <artifactId>ruoyi-common-swagger</artifactId>
|
| | | </dependency>
|
| | |
|
| | | </dependencies>
|
| | |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2; |
| | | |
| | | /** |
| | | * 文件服务 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @EnableCustomSwagger2 |
| | | @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class }) |
| | | public class RuoYiFileApplication |
| | | { |
| | |
| | | <groupId>org.springframework.boot</groupId>
|
| | | <artifactId>spring-boot-starter-actuator</artifactId>
|
| | | </dependency>
|
| | | |
| | | <!-- Swagger UI -->
|
| | | <dependency>
|
| | | <groupId>io.springfox</groupId>
|
| | | <artifactId>springfox-swagger-ui</artifactId>
|
| | | <version>${swagger.fox.version}</version>
|
| | | </dependency>
|
| | |
|
| | | <!-- Apache Velocity -->
|
| | | <dependency>
|
| | |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
| | | import com.ruoyi.common.security.annotation.EnableCustomConfig;
|
| | | import com.ruoyi.common.security.annotation.EnableRyFeignClients;
|
| | | import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
|
| | |
|
| | | /**
|
| | | * 代码生成
|
| | |
| | | * @author ruoyi
|
| | | */
|
| | | @EnableCustomConfig
|
| | | @EnableCustomSwagger2
|
| | | @EnableRyFeignClients
|
| | | @SpringBootApplication
|
| | | public class RuoYiGenApplication
|
| | |
| | | package com.ruoyi.gen.domain;
|
| | |
|
| | | import javax.validation.constraints.NotBlank;
|
| | |
|
| | | import com.ruoyi.common.core.utils.StringUtils;
|
| | | import com.ruoyi.common.core.web.domain.BaseEntity;
|
| | |
|
| | |
| | | <groupId>org.springframework.boot</groupId>
|
| | | <artifactId>spring-boot-starter-actuator</artifactId>
|
| | | </dependency>
|
| | | |
| | | <!-- Swagger UI -->
|
| | | <dependency>
|
| | | <groupId>io.springfox</groupId>
|
| | | <artifactId>springfox-swagger-ui</artifactId>
|
| | | <version>${swagger.fox.version}</version>
|
| | | </dependency>
|
| | | |
| | | |
| | | <!-- Quartz -->
|
| | | <dependency>
|
| | | <groupId>org.quartz-scheduler</groupId>
|
| | |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
| | | import com.ruoyi.common.security.annotation.EnableCustomConfig;
|
| | | import com.ruoyi.common.security.annotation.EnableRyFeignClients;
|
| | | import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
|
| | |
|
| | | /**
|
| | | * 定时任务
|
| | |
| | | * @author ruoyi
|
| | | */
|
| | | @EnableCustomConfig
|
| | | @EnableCustomSwagger2
|
| | | @EnableRyFeignClients
|
| | | @SpringBootApplication
|
| | | public class RuoYiJobApplication
|
| | |
| | | <groupId>org.springframework.boot</groupId>
|
| | | <artifactId>spring-boot-starter-actuator</artifactId>
|
| | | </dependency>
|
| | | |
| | | <!-- Swagger UI -->
|
| | | <dependency>
|
| | | <groupId>io.springfox</groupId>
|
| | | <artifactId>springfox-swagger-ui</artifactId>
|
| | | <version>${swagger.fox.version}</version>
|
| | | </dependency>
|
| | | |
| | | |
| | | <!-- Mysql Connector -->
|
| | | <dependency>
|
| | | <groupId>com.mysql</groupId>
|
| | |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication;
|
| | | import com.ruoyi.common.security.annotation.EnableCustomConfig;
|
| | | import com.ruoyi.common.security.annotation.EnableRyFeignClients;
|
| | | import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
|
| | |
|
| | | /**
|
| | | * 系统模块
|
| | |
| | | * @author ruoyi
|
| | | */
|
| | | @EnableCustomConfig
|
| | | @EnableCustomSwagger2
|
| | | @EnableRyFeignClients
|
| | | @SpringBootApplication
|
| | | public class RuoYiSystemApplication
|
| File was renamed from sql/ry_config_20231204.sql |
| | |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='config_info'; |
| | | |
| | | insert into config_info(id, data_id, group_id, content, md5, gmt_create, gmt_modified, src_user, src_ip, app_name, tenant_id, c_desc, c_use, effect, type, c_schema, encrypted_data_key) values |
| | | (1,'application-dev.yml','DEFAULT_GROUP','spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n','58dde4e3760499d3bac2d77a3a1e9018','2020-05-20 12:00:00','2023-12-04 08:08:23','nacos','0:0:0:0:0:0:0:1','','','通用配置','null','null','yaml','',''), |
| | | (2,'ruoyi-gateway-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: ruoyi-auth\n uri: lb://ruoyi-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: ruoyi-gen\n uri: lb://ruoyi-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: ruoyi-job\n uri: lb://ruoyi-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: ruoyi-system\n uri: lb://ruoyi-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: ruoyi-file\n uri: lb://ruoyi-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n','57cec5abd0e0a6b77d853750344a9dc0','2020-05-14 14:17:55','2022-09-29 02:48:32','nacos','0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','',''), |
| | | (3,'ruoyi-auth-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n','8bd9dada9a94822feeab40de55efced6','2020-11-20 00:00:00','2022-09-29 02:48:42','nacos','0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','',''), |
| | | (4,'ruoyi-monitor-dev.yml','DEFAULT_GROUP','# spring\nspring:\n security:\n user:\n name: ruoyi\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n','6f122fd2bfb8d45f858e7d6529a9cd44','2020-11-20 00:00:00','2022-09-29 02:48:54','nacos','0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','',''), |
| | | (5,'ruoyi-system-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip','00678c89684ec0b825cb9b71e032db64','2020-11-20 00:00:00','2023-12-04 07:51:28','nacos','0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','',''), |
| | | (6,'ruoyi-gen-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n\n# 代码生成\ngen:\n # 作者\n author: ruoyi\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: com.ruoyi.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n','eb592420b3fceae1402881887b8a6a0d','2020-11-20 00:00:00','2022-09-29 02:49:42','nacos','0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','',''), |
| | | (7,'ruoyi-job-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By ruoyi\n licenseUrl: https://ruoyi.vip\n','edcf0e3fe13fea07b4ec08b1088f30b3','2020-11-20 00:00:00','2022-09-29 02:50:50','nacos','0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','',''), |
| | | (1,'application-dev.yml','DEFAULT_GROUP','spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n min-request-size: 8192\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n','9928f41dfb10386ad38b3254af5692e0','2020-05-20 12:00:00','2024-08-29 12:14:45','nacos','0:0:0:0:0:0:0:1','','','通用配置','null','null','yaml','',''), |
| | | (2,'ruoyi-gateway-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: ruoyi-auth\n uri: lb://ruoyi-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: ruoyi-gen\n uri: lb://ruoyi-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: ruoyi-job\n uri: lb://ruoyi-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: ruoyi-system\n uri: lb://ruoyi-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: ruoyi-file\n uri: lb://ruoyi-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /*/v3/api-docs\n - /csrf\n\n# springdoc配置\nspringdoc:\n webjars:\n # 访问前缀\n prefix:\n','8c66647b02225f9c91c53b3d9d6fa612','2020-05-14 14:17:55','2024-08-29 12:14:20','nacos','0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','',''), |
| | | (3,'ruoyi-auth-dev.yml','DEFAULT_GROUP','spring:\n redis:\n host: localhost\n port: 6379\n password:\n','8bd9dada9a94822feeab40de55efced6','2020-11-20 00:00:00','2024-08-29 12:14:57','nacos','0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','',''), |
| | | (4,'ruoyi-monitor-dev.yml','DEFAULT_GROUP','# spring\nspring:\n security:\n user:\n name: ruoyi\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n','6f122fd2bfb8d45f858e7d6529a9cd44','2020-11-20 00:00:00','2024-08-29 12:15:11','nacos','0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','',''), |
| | | (5,'ruoyi-system-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n connectTimeout: 30000\n socketTimeout: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# springdoc配置\nspringdoc:\n gatewayUrl: http://localhost:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'系统模块接口文档\'\n # 描述\n description: \'系统模块接口描述\'\n # 作者信息\n contact:\n name: RuoYi\n url: https://ruoyi.vip\n','a6334ed5b9a5ec5dc1320a5e664ebf5c','2020-11-20 00:00:00','2024-08-29 12:15:55','nacos','0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','',''), |
| | | (6,'ruoyi-gen-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# springdoc配置\nspringdoc:\n gatewayUrl: http://localhost:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'代码生成接口文档\'\n # 描述\n description: \'代码生成接口描述\'\n # 作者信息\n contact:\n name: RuoYi\n url: https://ruoyi.vip\n\n# 代码生成\ngen:\n # 作者\n author: ruoyi\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: com.ruoyi.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n','0b64434dbc5013cbd0d2c60f731f4b61','2020-11-20 00:00:00','2024-08-29 12:18:32','nacos','0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','',''), |
| | | (7,'ruoyi-job-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: password\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.ruoyi.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# springdoc配置\nspringdoc:\n gatewayUrl: http://localhost:8080/${spring.application.name}\n api-docs:\n # 是否开启接口文档\n enabled: true\n info:\n # 标题\n title: \'定时任务接口文档\'\n # 描述\n description: \'定时任务接口描述\'\n # 作者信息\n contact:\n name: RuoYi\n url: https://ruoyi.vip\n','cf9118543f512009a237401b3fa1d5b4','2020-11-20 00:00:00','2024-08-29 12:18:41','nacos','0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','',''), |
| | | (8,'ruoyi-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/ruoyi/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml',NULL,''), |
| | | (9,'sentinel-ruoyi-gateway','DEFAULT_GROUP','[\r\n {\r\n \"resource\": \"ruoyi-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"ruoyi-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]','9f3a3069261598f74220bc47958ec252','2020-11-20 00:00:00','2020-11-20 00:00:00',NULL,'0:0:0:0:0:0:0:1','','','限流策略','null','null','json',NULL,''); |
| | | |