SpringBoot Gradle – Font Awesome OTS parsing error / Resource Issue

By | 2020년 5월 19일

Spring Boot 프로젝트에서 Resource 관련 Loading 이 제대로 안되는 이슈

application.yml

spring:
  resources:
    chain:
      html-application-cache: true
      enabled: true
      strategy:
        content:
          enabled: true
          paths: /**
    static-locations: classpath:/statics/
    add-mappings: true

build.gradle

processResources {
  filesMatching('application.yml') {
    filter org.apache.tools.ant.filters.ReplaceTokens, tokens: [
        activeProfiles: profile
    ]
  }
}

build.gradle 에서 processResouces 부분은 해당하는 프로젝트만.