문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
springframework:springboot [2018/04/06 08:54] kwon37xi |
springframework:springboot [2018/05/31 17:46] kwon37xi |
||
---|---|---|---|
줄 33: | 줄 33: | ||
* [[http:// | * [[http:// | ||
* 1.x와 2.x 에서 동일 결과를 낼 수 있는 방식 지정할 것. | * 1.x와 2.x 에서 동일 결과를 낼 수 있는 방식 지정할 것. | ||
+ | |||
+ | ===== DataSource ===== | ||
+ | * Default 말고 직접 '' | ||
+ | <code java> | ||
+ | import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder; | ||
+ | @Bean | ||
+ | @ConfigurationProperties(prefix = " | ||
+ | public DataSource rubyDataSource() { | ||
+ | return DataSourceBuilder.create().type(org.apache.tomcat.jdbc.pool.DataSource.class).build(); | ||
+ | } | ||
+ | </ | ||
+ | * 위 예에서 설정값은 '' | ||
+ | |||
===== 참고 ===== | ===== 참고 ===== | ||
* [[http:// | * [[http:// |