log4j fix

This commit is contained in:
_Bastler 2021-12-12 21:22:00 +01:00
parent 1c47e76e9f
commit dd96bb3065
2 changed files with 6 additions and 5 deletions

View File

@ -10,7 +10,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<revision>1.3.1</revision>
<log4j2.version>2.15.0</log4j2.version>
<revision>1.3.2</revision>
</properties>
<parent>

View File

@ -8,8 +8,8 @@ import java.time.temporal.ChronoUnit;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.RandomUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.access.prepost.PreAuthorize;
@ -38,8 +38,8 @@ import de.bstly.board.repository.VoteRepository;
@RestController
@RequestMapping("/debug")
public class DebugController extends BaseController {
private Logger logger = LogManager.getLogger(DebugController.class);
private Logger logger = LoggerFactory.getLogger(DebugController.class);
@Autowired
private PasswordEncoder passwordEncoder;