목차

SpringBoot

@EnableAutoConfiguration

JRebel SpringBoot / Gradle

DataSource

import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
@Bean
@ConfigurationProperties(prefix = "my.datasource")
public DataSource rubyDataSource() {
    return DataSourceBuilder.create().type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
}

SpringApplicationRunListener

SpringBoot WebMVC 정적 리소스(static resource)

static resource 서빙 경로

static resource 관련 프라퍼티

spring.mvc.static-path-pattern=/** # 정적 resource url 패턴

server.compression.enabled=true
spring.resources.chain.cache=true
server.compression.min-response-size=2048
spring.resources.chain.enabled=true
spring.resources.cache-period=3600

참고