Package org.apache.shiro.samples
Class WebApp
- java.lang.Object
-
- org.apache.shiro.samples.WebApp
-
@Configuration @ControllerAdvice @SpringBootApplication public class WebApp extends Object
-
-
Constructor Summary
Constructors Constructor Description WebApp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
handleException(AuthorizationException e, Model model)
static void
main(String[] args)
Realm
realm()
ShiroFilterChainDefinition
shiroFilterChainDefinition()
Subject
subject()
-
-
-
Constructor Detail
-
WebApp
public WebApp()
-
-
Method Detail
-
handleException
@ExceptionHandler(AuthorizationException.class) @ResponseStatus(FORBIDDEN) public String handleException(AuthorizationException e, Model model)
-
shiroFilterChainDefinition
@Bean public ShiroFilterChainDefinition shiroFilterChainDefinition()
-
subject
@ModelAttribute(name="subject") public Subject subject()
-
-