File tree Expand file tree Collapse file tree
src/main/java/com/baeldung/cassecuredapp/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 <artifactId >spring-security-test</artifactId >
5858 <scope >test</scope >
5959 </dependency >
60+ <dependency >
61+ <groupId >org.apache.logging.log4j</groupId >
62+ <artifactId >log4j-core</artifactId >
63+ <version >2.10.0</version >
64+ </dependency >
6065 </dependencies >
6166
6267 <build >
Original file line number Diff line number Diff line change 11package com .baeldung .cassecuredapp .controllers ;
22
3- import org .apache .log4j .Logger ;
3+ import org .apache .logging .log4j .Logger ;
4+ import org .apache .logging .log4j .LogManager ;
45import org .springframework .security .core .Authentication ;
56import org .springframework .security .core .context .SecurityContextHolder ;
67import org .springframework .security .web .authentication .logout .CookieClearingLogoutHandler ;
1516@ Controller
1617public class AuthController {
1718
18- private Logger logger = Logger .getLogger (AuthController .class );
19+ private Logger logger = LogManager .getLogger (AuthController .class );
1920
2021 @ GetMapping ("/logout" )
2122 public String logout (
You can’t perform that action at this time.
0 commit comments