mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-28 04:31:57 +08:00
devtools
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
username: root
|
||||
password: root
|
||||
url: jdbc:mysql://localhost:3306/ry-cloud?serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
@@ -50,6 +50,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception
|
||||
{
|
||||
http.httpBasic().disable();
|
||||
|
||||
http
|
||||
.authorizeRequests()
|
||||
.antMatchers(
|
||||
@@ -57,6 +59,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter
|
||||
"/token/**").permitAll()
|
||||
.anyRequest().authenticated()
|
||||
.and().csrf().disable();
|
||||
|
||||
}
|
||||
|
||||
/*** 设置不拦截规则 */
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
debug: true
|
||||
@@ -1,13 +0,0 @@
|
||||
spring:
|
||||
cloud:
|
||||
gateway:
|
||||
routes:
|
||||
- id: authRoute
|
||||
uri: lb://ruoyi-auth
|
||||
order: 10000
|
||||
predicates:
|
||||
- Path=/auth/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
|
||||
debug: true
|
||||
@@ -22,4 +22,12 @@ spring:
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
gateway:
|
||||
routes:
|
||||
- id: authRoute
|
||||
uri: lb://ruoyi-auth
|
||||
order: 10000
|
||||
predicates:
|
||||
- Path=/auth/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
@@ -1,13 +0,0 @@
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
username: root
|
||||
password: root
|
||||
url: jdbc:mysql://localhost:3306/ry-cloud?serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
application:
|
||||
name: ruoyi-job
|
||||
mybatis:
|
||||
mapper-locations: classpath*:/**/*Mapper.xml
|
||||
type-aliases-package: com.ruoyi.job.domain
|
||||
@@ -22,3 +22,7 @@ spring:
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
||||
mybatis:
|
||||
mapper-locations: classpath*:/**/*Mapper.xml
|
||||
type-aliases-package: com.ruoyi.job.domain
|
||||
Reference in New Issue
Block a user