File tree Expand file tree Collapse file tree
apache-shiro/src/main/java/com/baeldung/intro Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- package com .baeldung ;
1+ package com .baeldung . intro ;
22
33import org .apache .shiro .SecurityUtils ;
44import org .apache .shiro .authc .AuthenticationException ;
Original file line number Diff line number Diff line change 1- package com .baeldung ;
1+ package com .baeldung . intro ;
22
33import java .sql .Connection ;
44import java .sql .SQLException ;
Original file line number Diff line number Diff line change 1- package com .baeldung ;
1+ package com .baeldung . intro ;
22
33import org .apache .shiro .realm .Realm ;
44import org .apache .shiro .spring .web .config .DefaultShiroFilterChainDefinition ;
77import org .slf4j .LoggerFactory ;
88import org .springframework .boot .SpringApplication ;
99import org .springframework .boot .autoconfigure .SpringBootApplication ;
10+ import org .springframework .boot .autoconfigure .security .servlet .SecurityAutoConfiguration ;
1011import org .springframework .context .annotation .Bean ;
1112
1213/**
1314 * Created by smatt on 21/08/2017.
1415 */
15- @ SpringBootApplication
16+ @ SpringBootApplication ( exclude = SecurityAutoConfiguration . class )
1617public class ShiroSpringApplication {
1718
1819 private static final transient Logger log = LoggerFactory .getLogger (ShiroSpringApplication .class );
@@ -29,7 +30,7 @@ public Realm realm() {
2930
3031
3132 @ Bean
32- public ShiroFilterChainDefinition shiroFilterChainDefinition () {
33+ public ShiroFilterChainDefinition filterChainDefinition () {
3334 DefaultShiroFilterChainDefinition filter
3435 = new DefaultShiroFilterChainDefinition ();
3536
Original file line number Diff line number Diff line change 1- package com .baeldung .controllers ;
1+ package com .baeldung .intro . controllers ;
22
3- import com .baeldung .models .UserCredentials ;
43import org .apache .shiro .SecurityUtils ;
54import org .apache .shiro .authc .AuthenticationException ;
65import org .apache .shiro .authc .UsernamePasswordToken ;
1312import org .springframework .web .bind .annotation .RequestMethod ;
1413import org .springframework .web .servlet .mvc .support .RedirectAttributes ;
1514
15+ import com .baeldung .intro .models .UserCredentials ;
16+
1617import javax .servlet .http .HttpServletRequest ;
1718
1819@ Controller
Original file line number Diff line number Diff line change 1- package com .baeldung .models ;
1+ package com .baeldung .intro . models ;
22
33public class UserCredentials {
44
You can’t perform that action at this time.
0 commit comments