fix static content load

This commit is contained in:
Main
2016-02-16 21:03:38 +03:00
parent ff00467b47
commit 655f86071c
2 changed files with 6 additions and 6 deletions

View File

@@ -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()

View File

@@ -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)