devtools
This commit is contained in:
parent
ae1887486c
commit
404b98bfc5
|
|
@ -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
|
@Override
|
||||||
protected void configure(HttpSecurity http) throws Exception
|
protected void configure(HttpSecurity http) throws Exception
|
||||||
{
|
{
|
||||||
|
http.httpBasic().disable();
|
||||||
|
|
||||||
http
|
http
|
||||||
.authorizeRequests()
|
.authorizeRequests()
|
||||||
.antMatchers(
|
.antMatchers(
|
||||||
|
|
@ -57,6 +59,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter
|
||||||
"/token/**").permitAll()
|
"/token/**").permitAll()
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
.and().csrf().disable();
|
.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
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
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
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-dataids: application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
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
|
||||||
Loading…
Reference in New Issue