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{
// Turn off the csrf mechanism, you can use get login, otherwise you can only use post
http .csrf(csrf-> csrf.disable())
.authorizeHttpRequests(requests -> requests
.requestMatchers("/device.html").hasRole("ADMIN")
//+.requestMatchers("/superAdminView.html").hasRole("SUPER")
.requestMatchers("/commonUser.html").authenticated()
.requestMatchers("/superAdminView.html").hasRole("SUPER")
.requestMatchers("/hospitalView.html").hasRole("HOSPITAL")
.requestMatchers("/admin.html").hasRole("ADMIN")
.anyRequest().permitAll()
)
......
healthcare:
datasource:
url: jdbc:mariadb://localhost:3307/healthcare
port: 3307
url: jdbc:mariadb://localhost:3306/healthcare?createDatabaseIfNotExist=true
port: 3306
username: root
password: root
\ No newline at end of file
password: comsc
\ No newline at end of file
......@@ -8,12 +8,12 @@ spring:
username: ${healthcare.datasource.username}
password: ${healthcare.datasource.password}
port: ${healthcare.datasource.port}
sql:
init:
schema-locations: classpath:schema.sql
data-locations: classpath:data.sql
platform: mariadb
mode: always
sql:
init:
schema-locations: classpath:schema.sql
data-locations: classpath:data.sql
platform: mariadb
mode: always
thymeleaf:
prefix: classpath:/templates/
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