Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
df51efba
Commit
df51efba
authored
Oct 19, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决未经授权问题
parent
5fea6b38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
WebSecurityConfig.java
...in/amos/boot/module/ugp/biz/config/WebSecurityConfig.java
+25
-0
application.properties
...-module-ugp-biz/src/main/resources/application.properties
+5
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/config/WebSecurityConfig.java
0 → 100644
View file @
df51efba
//package com.yeejoin.amos.boot.module.ugp.biz.config;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//
//@Configuration
//@EnableWebSecurity
//public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
// // 授权
// @Override
// protected void configure(HttpSecurity http) throws Exception {
// http.csrf().disable()
// .headers()
// .frameOptions()
// .disable()
// .and()
// .authorizeRequests()
// .regexMatchers("^(?!/actuator).*$").permitAll()
// .regexMatchers("/actuator/health").permitAll()
// .regexMatchers("/actuator/info").permitAll()
// .anyRequest().authenticated().and()
// .formLogin();
// }
//}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/resources/application.properties
View file @
df51efba
...
...
@@ -33,4 +33,7 @@ params.work.flow.processDefinitionKey=xiangmulixiangliucheng
params.work.flow.problemDefinitionKey
=
zhiliangwentiliucheng
amos.secret.key
=
ugp
#
logging.level.com.yeejoin.amos
=
error
\ No newline at end of file
#logging.level.com.yeejoin.amos=error
#spring.security.user.name=admin
#
spring.security.user.password
=
a1234560
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment