Skip to content
Snippets Groups Projects
Commit 8f27ec0d authored by wyl's avatar wyl
Browse files

update system construction

parent 74f5c126
No related branches found
No related tags found
1 merge request!77update system
...@@ -51,9 +51,9 @@ public class WebSecurityConfig{ ...@@ -51,9 +51,9 @@ public class WebSecurityConfig{
// Turn off the csrf mechanism, you can use get login, otherwise you can only use post // Turn off the csrf mechanism, you can use get login, otherwise you can only use post
http .csrf(csrf-> csrf.disable()) http .csrf(csrf-> csrf.disable())
.authorizeHttpRequests(requests -> requests .authorizeHttpRequests(requests -> requests
.requestMatchers("/device.html").hasRole("ADMIN") .requestMatchers("/superAdminView.html").hasRole("SUPER")
//+.requestMatchers("/superAdminView.html").hasRole("SUPER") .requestMatchers("/hospitalView.html").hasRole("HOSPITAL")
.requestMatchers("/commonUser.html").authenticated() .requestMatchers("/admin.html").hasRole("ADMIN")
.anyRequest().permitAll() .anyRequest().permitAll()
) )
......
healthcare: healthcare:
datasource: datasource:
url: jdbc:mariadb://localhost:3307/healthcare url: jdbc:mariadb://localhost:3306/healthcare?createDatabaseIfNotExist=true
port: 3307 port: 3306
username: root username: root
password: root password: comsc
\ No newline at end of file \ No newline at end of file
...@@ -8,12 +8,12 @@ spring: ...@@ -8,12 +8,12 @@ spring:
username: ${healthcare.datasource.username} username: ${healthcare.datasource.username}
password: ${healthcare.datasource.password} password: ${healthcare.datasource.password}
port: ${healthcare.datasource.port} port: ${healthcare.datasource.port}
sql: sql:
init: init:
schema-locations: classpath:schema.sql schema-locations: classpath:schema.sql
data-locations: classpath:data.sql data-locations: classpath:data.sql
platform: mariadb platform: mariadb
mode: always mode: always
thymeleaf: thymeleaf:
prefix: classpath:/templates/ prefix: classpath:/templates/
suffix: .html suffix: .html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment