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 { compileOnly {
extendsFrom annotationProcessor extendsFrom annotationProcessor
} }
all*.exclude module: 'spring-boot-starter-logging'
} }
repositories { repositories {
@ -42,6 +43,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' 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 'org.projectlombok:lombok'
implementation 'commons-fileupload:commons-fileupload:1.5' implementation 'commons-fileupload:commons-fileupload:1.5'
implementation 'org.junit.jupiter:junit-jupiter:5.4.2' implementation 'org.junit.jupiter:junit-jupiter:5.4.2'

View File

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