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