Trying spring boot log4j dependencies

This commit is contained in:
iadgovuser29 2023-06-27 15:58:36 -04:00
parent 14d9e8897f
commit f92a233078
2 changed files with 5 additions and 2 deletions

View File

@ -22,6 +22,7 @@ configurations {
compileOnly {
extendsFrom annotationProcessor
}
all*.exclude module: 'spring-boot-starter-logging'
}
repositories {
@ -42,6 +43,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'org.apache.logging.log4j:log4j-spring-boot'
implementation 'org.projectlombok:lombok'
implementation 'commons-fileupload:commons-fileupload:1.5'
implementation 'org.junit.jupiter:junit-jupiter:5.4.2'

View File

@ -16,9 +16,9 @@ import java.util.Collections;
@SpringBootApplication
//@EnableAutoConfiguration
//@Log4j2
@Log4j2
public class HIRSApplication {//extends SpringBootServletInitializer {
// private static final Logger LOGGER = LogManager.getLogger(HIRSApplication.class);
// @Override
// protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
// return application.sources(HIRSApplication.class);