File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,18 @@ Profiles are a feature that groups beans and properties to be activated only in
3131### Configuration Example (XML)
3232
3333``` xml
34- <!-- H2 datasource bean registered only when the dev profile is active -->
35- <bean id =" dataSource" class =" com.zaxxer.hikari.HikariDataSource" profile = " dev " >
36- <properties >
34+ <!-- H2 datasource applicable only when the dev profile is active -->
35+ <bean id =" dataSource" class =" com.zaxxer.hikari.HikariDataSource" >
36+ <properties profile = " dev " >
3737 <item name =" driverClassName" >org.h2.Driver</item >
3838 <item name =" jdbcUrl" >jdbc:h2:mem:testdb</item >
3939 <item name =" username" >sa</item >
4040 </properties >
4141</bean >
4242
43- <!-- MySQL datasource bean registered only when the prod profile is active -->
44- <bean id =" dataSource" class =" com.zaxxer.hikari.HikariDataSource" profile = " prod " >
45- <properties >
43+ <!-- MySQL datasource applicable only when the prod profile is active -->
44+ <bean id =" dataSource" class =" com.zaxxer.hikari.HikariDataSource" >
45+ <properties profile = " prod " >
4646 <item name =" driverClassName" >com.mysql.cj.jdbc.Driver</item >
4747 <item name =" jdbcUrl" >jdbc:mysql://localhost:3306/prod_db</item >
4848 <item name =" username" >prod_user</item >
Original file line number Diff line number Diff line change @@ -32,18 +32,18 @@ subheadline: 아키텍처
3232### 설정 예제 (XML)
3333
3434``` xml
35- <!-- 개발(dev) 프로필이 활성화될 때만 등록되는 H2 데이터소스 빈 -->
36- <bean id =" dataSource" class =" com.zaxxer.hikari.HikariDataSource" profile = " dev " >
37- <properties >
35+ <!-- 개발(dev) 프로필이 활성화될 때만 적용되는 H2 데이터소스 -->
36+ <bean id =" dataSource" class =" com.zaxxer.hikari.HikariDataSource" >
37+ <properties profile = " dev " >
3838 <item name =" driverClassName" >org.h2.Driver</item >
3939 <item name =" jdbcUrl" >jdbc:h2:mem:testdb</item >
4040 <item name =" username" >sa</item >
4141 </properties >
4242</bean >
4343
44- <!-- 운영(prod) 프로필이 활성화될 때만 등록되는 MySQL 데이터소스 빈 -->
45- <bean id =" dataSource" class =" com.zaxxer.hikari.HikariDataSource" profile = " prod " >
46- <properties >
44+ <!-- 운영(prod) 프로필이 활성화될 때만 적용되는 MySQL 데이터소스 -->
45+ <bean id =" dataSource" class =" com.zaxxer.hikari.HikariDataSource" >
46+ <properties profile = " prod " >
4747 <item name =" driverClassName" >com.mysql.cj.jdbc.Driver</item >
4848 <item name =" jdbcUrl" >jdbc:mysql://localhost:3306/prod_db</item >
4949 <item name =" username" >prod_user</item >
You can’t perform that action at this time.
0 commit comments