fix static content load
This commit is contained in:
@@ -47,14 +47,13 @@ public class AuthConfiguration extends WebSecurityConfigurerAdapter {
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception {
|
||||
http.csrf().disable()
|
||||
.formLogin().loginPage("/index.html").and()
|
||||
.authorizeRequests()
|
||||
.antMatchers("/index.html").permitAll()
|
||||
.antMatchers("/health").permitAll()
|
||||
.antMatchers("/swagger-ui.html").permitAll()
|
||||
.antMatchers("/v2/api-docs").permitAll()
|
||||
.antMatchers("/js*//**").permitAll()
|
||||
.antMatchers("/styles*//**").permitAll()
|
||||
.antMatchers("/views*//**").permitAll()
|
||||
.antMatchers("/**.js").permitAll()
|
||||
.antMatchers("/**.css").permitAll()
|
||||
.antMatchers(HttpMethod.POST, "/customers").permitAll()
|
||||
.antMatchers(HttpMethod.POST, "/login").permitAll()
|
||||
.anyRequest().authenticated().and()
|
||||
|
||||
@@ -20,9 +20,10 @@ dependencies {
|
||||
|
||||
}
|
||||
|
||||
task copyAngularJS(type: Copy) {
|
||||
task copyWebStatic(type: Copy) {
|
||||
from "../../prebuilt-web-client"
|
||||
into "build/resources/main/static"
|
||||
}
|
||||
|
||||
jar.dependsOn(copyAngularJS)
|
||||
jar.dependsOn(copyWebStatic)
|
||||
bootRun.dependsOn(copyWebStatic)
|
||||
Reference in New Issue
Block a user