jsp /jstl -> thymeleaf

Welcome to Seoyun Dev Log·2022년 11월 22일
0

이제는 사용하지 않는 JSP / JSTL

: 어쩌면 이번 리팩토링에서 가장 의미있는 부분이면서 막막했던 부분이다.

JSP / JSTL을 사용하지 않는

발생한 에러

  • SLF4J: No SLF4J providers were found.
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
    SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
    SLF4J: Ignoring binding found at [jar:file:/Users/seoyun/.m2/repository/ch/qos/logback/logback-classic/1.2.11/logback-classic-1.2.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.

SLF4J: No SLF4J providers were found. : 바인딩 버전이 맞지 않음
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=beanpole2020&logNo=221485607117

https://www.baeldung.com/slf4j-classpath-multiple-bindings

  • 변경 전
repositories {
    mavenLocal()
    maven {
        url = uri('https://repo.maven.apache.org/maven2/')
    }
    mavenCentral()
}
  • 변경 : 메이븐의 기본 리포지토리만 지정
repositories {
    mavenCentral()
}
    compileOnly 'org.projectlombok:lombok:1.18.24'
    annotationProcessor 'org.projectlombok:lombok:1.18.24'
    implementation 'org.projectlombok:lombok:1.18.24'

빌드 성공

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
    implementation 'org.springframework.boot:spring-boot-starter-validation'
    implementation 'org.springframework.boot:spring-boot-devtools'
    implementation 'org.mybatis:mybatis:3.5.11'
    implementation 'org.mybatis:mybatis-spring:2.0.7'
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.7'
    implementation 'commons-fileupload:commons-fileupload:1.4'
    implementation 'commons-io:commons-io:2.4'
    implementation 'org.apache.httpcomponents:httpclient:4.5.13'
    implementation 'org.apache.httpcomponents:httpcore:4.4.15'
    implementation 'org.json:json:20201115'
    implementation 'mysql:mysql-connector-java:8.0.30'
    implementation 'commons-dbcp:commons-dbcp:1.4'
    implementation 'org.springframework.boot:spring-boot-starter-web:2.7.5'
    implementation 'org.thymeleaf:thymeleaf:3.1.0.RELEASE'
    compileOnly 'org.projectlombok:lombok:1.18.24'
    annotationProcessor 'org.projectlombok:lombok:1.18.24'
    implementation 'org.projectlombok:lombok:1.18.24'

    testCompileOnly 'org.projectlombok:lombok:1.18.24'
    testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
}
profile
하루 일지 보단 행동 고찰 과정에 대한 개발 블로그

0개의 댓글

관련 채용 정보