July 2018
Intermediate to advanced
268 pages
7h 36m
English
This magic class will bring in HDIV capability to your application without too much trouble. The full class is as shown here:
@Configuration@EnableHdivWebSecuritypublic class HdivSecurityConfig extends HdivWebSecurityConfigurerAdapter { @Override public void addExclusions(final ExclusionRegistry registry) { registry.addUrlExclusions("/login"); }}
The heavy lifting is done by the class that we are extending, HdivWebSecurityConfigurerAdapter. Also, the @EnableHdivWebSecurity annotation makes sure that much of the setup is automatically taken care of. We just need to make sure that the configuration of our login page URL is excluded from HDIV security by overriding the addExclusions method.
Read now
Unlock full access