Skip to content

Commit

Permalink
conflict mvcConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaiasMorochi committed Sep 7, 2019
2 parents 5026afb + f144e79 commit d44b154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/config/MvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
.addResourceLocations(resourcePath);
}*/


/**
* Registrar un controlador de vista
*/
public void addViewControllers(ViewControllerRegistry registry){
registry.addViewController("/error_403").setViewName("error_403");
}

}
6 changes: 3 additions & 3 deletions src/main/java/com/config/SpringSecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ protected void configure(HttpSecurity http) throws Exception {
.loginPage("/login")
.permitAll()
.and()
.logout().permitAll()
.logout()
.permitAll()
.and()
.exceptionHandling()
.accessDeniedPage("/error_403");
.exceptionHandling().accessDeniedPage("/error_403");
}


Expand Down

0 comments on commit d44b154

Please sign in to comment.