Skip to content

Commit 1339da4

Browse files
committed
Update
1 parent 47a2d8d commit 1339da4

File tree

8 files changed

+110
-150
lines changed

8 files changed

+110
-150
lines changed

_pages/en/aspectran/user-guide.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -634,20 +634,20 @@ In Aspectran's configuration files (XML or APON), you can use the `profile` attr
634634
<aspectran>
635635
636636
<!-- Development database settings applied only when the 'dev' profile is active -->
637-
<properties profile="dev">
637+
<environment profile="dev">
638638
<property name="db.driver">org.h2.Driver</property>
639639
<property name="db.url">jdbc:h2:mem:devdb;DB_CLOSE_DELAY=-1</property>
640640
<property name="db.username">sa</property>
641641
<property name="db.password"></property>
642-
</properties>
642+
</environment>
643643
644644
<!-- Production database settings applied only when the 'prod' profile is active -->
645-
<properties profile="prod">
645+
<environment profile="prod">
646646
<property name="db.driver">com.mysql.cj.jdbc.Driver</property>
647647
<property name="db.url">jdbc:mysql://prod.db.server:3306/main_db</property>
648648
<property name="db.username">prod_db_user</property>
649649
<property name="db.password">!PROD_DB_PASSWORD!</property>
650-
</properties>
650+
</environment>
651651
652652
<!-- Include a specific configuration file only when the 'prod' profile is active -->
653653
<append file="/config/metrics-context.xml" profile="prod"/>
@@ -679,20 +679,20 @@ Here is a complete example of setting different database connection information
679679
<description>Loads different DB settings depending on the environment.</description>
680680
681681
<!-- Development environment settings -->
682-
<properties profile="dev">
682+
<environment profile="dev">
683683
<property name="db.driver">org.h2.Driver</property>
684684
<property name="db.url">jdbc:h2:mem:devdb;DB_CLOSE_DELAY=-1</property>
685685
<property name="db.username">sa</property>
686686
<property name="db.password"></property>
687-
</properties>
687+
</environment>
688688
689689
<!-- Production environment settings -->
690-
<properties profile="prod">
690+
<environment profile="prod">
691691
<property name="db.driver">com.mysql.cj.jdbc.Driver</property>
692692
<property name="db.url">jdbc:mysql://prod.db.server:3306/main_db</property>
693693
<property name="db.username">prod_db_user</property>
694694
<property name="db.password">!PROD_DB_PASSWORD!</property>
695-
</properties>
695+
</environment>
696696
697697
<!-- Data source bean definition -->
698698
<bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource">
@@ -849,11 +849,9 @@ The `name` attribute of the `<dispatch>` rule specifies the path to the template
849849
```xml
850850
<!-- 1. Thymeleaf view dispatcher bean configuration -->
851851
<bean id="thymeleafViewDispatcher" class="com.aspectran.thymeleaf.view.ThymeleafViewDispatcher">
852-
<properties>
853-
<property name="prefix" value="/WEB-INF/templates/"/>
854-
<property name="suffix" value=".html"/>
855-
<property name="templateEngine" value-ref="thymeleafEngine"/>
856-
</properties>
852+
<property name="prefix" value="/WEB-INF/templates/"/>
853+
<property name="suffix" value=".html"/>
854+
<property name="templateEngine" value-ref="thymeleafEngine"/>
857855
</bean>
858856
859857
<!-- 2. Using a Dispatch rule in a Translet to call a Thymeleaf view -->

_pages/en/docs/architecture/aspectran-session-manager.md

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,16 @@ In such cases, it is advantageous to set the maximum idle time for new sessions
126126

127127
```xml
128128
<bean class="com.aspectran.core.context.config.SessionManagerConfig">
129-
<arguments>
130-
<item>
131-
workerName: jn0
132-
maxActiveSessions: 99999
133-
maxIdleSeconds: 489
134-
evictionIdleSeconds: 258
135-
maxIdleSecondsForNew: 60
136-
evictionIdleSecondsForNew: 30
137-
scavengingIntervalSeconds: 90
138-
clusterEnabled: true
139-
</item>
140-
</arguments>
129+
<argument>
130+
workerName: jn0
131+
maxActiveSessions: 99999
132+
maxIdleSeconds: 489
133+
evictionIdleSeconds: 258
134+
maxIdleSecondsForNew: 60
135+
evictionIdleSecondsForNew: 30
136+
scavengingIntervalSeconds: 90
137+
clusterEnabled: true
138+
</argument>
141139
</bean>
142140
```
143141

@@ -209,45 +207,35 @@ Dynamically switch the session store based on the production environment using p
209207
```xml
210208
<bean id="tow.context.jpetstore.sessionManager"
211209
class="com.aspectran.undertow.server.session.TowSessionManager">
212-
<properties>
213-
<item name="sessionManagerConfig">
214-
<bean class="com.aspectran.core.component.session.SessionManagerConfig">
215-
<arguments>
216-
<item>
217-
workerName: jn0
218-
maxActiveSessions: 99999
219-
maxIdleSeconds: 489
220-
maxIdleSecondsForNew: 60
221-
scavengingIntervalSeconds: 90
222-
clusterEnabled: true
223-
</item>
224-
</arguments>
225-
</bean>
226-
</item>
227-
</properties>
210+
<property name="sessionManagerConfig">
211+
<bean class="com.aspectran.core.component.session.SessionManagerConfig">
212+
<argument>
213+
workerName: jn0
214+
maxActiveSessions: 99999
215+
maxIdleSeconds: 489
216+
maxIdleSecondsForNew: 60
217+
scavengingIntervalSeconds: 90
218+
clusterEnabled: true
219+
</argument>
220+
</bean>
221+
</property>
228222
<!-- Default profile: Use FileStore -->
229223
<properties profile="!prod">
230224
<item name="sessionStore">
231225
<bean class="com.aspectran.core.component.session.FileSessionStoreFactoryBean">
232-
<properties>
233-
<item name="storeDir">/work/_sessions/jpetstore</item>
234-
</properties>
226+
<property name="storeDir">/work/_sessions/jpetstore</property>
235227
</bean>
236228
</item>
237229
</properties>
238230
<!-- When 'prod' profile is active: Use RedisStore -->
239231
<properties profile="prod">
240232
<item name="sessionStore">
241233
<bean class="com.aspectran.core.component.session.redis.lettuce.DefaultLettuceSessionStoreFactoryBean">
242-
<properties>
243-
<item name="poolConfig">
244-
<bean class="com.aspectran.core.component.session.redis.lettuce.RedisConnectionPoolConfig">
245-
<properties>
246-
<item name="uri">%{system:redis.uri}/11</item>
247-
</properties>
248-
</bean>
249-
</item>
250-
</properties>
234+
<property name="poolConfig">
235+
<bean class="com.aspectran.core.component.session.redis.lettuce.RedisConnectionPoolConfig">
236+
<property name="uri">%{system:redis.uri}/11</property>
237+
</bean>
238+
</property>
251239
</bean>
252240
</item>
253241
</properties>

_pages/en/docs/guides/aspectran-profiles.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ In most elements within Aspectran's configuration file (XML-based), you can use
3939
<aspectran>
4040

4141
<!-- Properties applied only when the 'dev' profile is active -->
42-
<properties profile="dev">
42+
<environment profile="dev">
4343
<property name="db.driver">org.h2.Driver</property>
4444
<property name="db.url">jdbc:h2:mem:testdb</property>
4545
<property name="db.username">sa</property>
4646
<property name="db.password"></property>
47-
</properties>
47+
</environment>
4848

4949
<!-- Properties applied only when the 'prod' profile is active -->
50-
<properties profile="prod">
50+
<environment profile="prod">
5151
<property name="db.driver">com.mysql.cj.jdbc.Driver</property>
5252
<property name="db.url">jdbc:mysql://localhost:3306/prod_db</property>
5353
<property name="db.username">prod_user</property>
5454
<property name="db.password">prod_password</property>
55-
</properties>
55+
</environment>
5656

5757
<!-- Include this configuration file only when the 'prod' profile is active -->
5858
<append file="/config/metrics-context.xml" profile="prod"/>
@@ -102,20 +102,20 @@ Here is a complete example of setting different database connection information
102102
<description>Loads different DB settings depending on the environment.</description>
103103

104104
<!-- Development environment settings -->
105-
<properties profile="dev">
105+
<environment profile="dev">
106106
<property name="db.driver">org.h2.Driver</property>
107107
<property name="db.url">jdbc:h2:mem:devdb;DB_CLOSE_DELAY=-1</property>
108108
<property name="db.username">sa</property>
109109
<property name="db.password"></property>
110-
</properties>
110+
</environment>
111111

112112
<!-- Production environment settings -->
113-
<properties profile="prod">
113+
<environment profile="prod">
114114
<property name="db.driver">com.mysql.cj.jdbc.Driver</property>
115115
<property name="db.url">jdbc:mysql://prod.db.server:3306/main_db</property>
116116
<property name="db.username">prod_db_user</property>
117117
<property name="db.password">!PROD_DB_PASSWORD!</property>
118-
</properties>
118+
</environment>
119119

120120
<!-- Data source bean definition -->
121121
<bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource">

_pages/en/docs/guides/aspectran-view-technologies.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ JSP is a classic view technology that is executed directly by the servlet contai
3434
```xml
3535
<!-- 1. JSP View Dispatcher Bean Configuration -->
3636
<bean id="jspViewDispatcher" class="com.aspectran.web.support.view.JspViewDispatcher">
37-
<properties>
38-
<property name="prefix" value="/WEB-INF/jsp/"/>
39-
<property name="suffix" value=".jsp"/>
40-
</properties>
37+
<property name="prefix" value="/WEB-INF/jsp/"/>
38+
<property name="suffix" value=".jsp"/>
4139
</bean>
4240

4341
<!-- 2. Dispatch Rule Definition -->
@@ -61,11 +59,9 @@ Thymeleaf is a modern server-side Java template engine for both web and standalo
6159
```xml
6260
<!-- 1. Thymeleaf View Dispatcher Bean Configuration -->
6361
<bean id="thymeleafViewDispatcher" class="com.aspectran.thymeleaf.view.ThymeleafViewDispatcher">
64-
<properties>
65-
<property name="prefix" value="/WEB-INF/templates/"/>
66-
<property name="suffix" value=".html"/>
67-
<property name="templateEngine" value-ref="thymeleafEngine"/>
68-
</properties>
62+
<property name="prefix" value="/WEB-INF/templates/"/>
63+
<property name="suffix" value=".html"/>
64+
<property name="templateEngine" value-ref="thymeleafEngine"/>
6965
</bean>
7066

7167
<!-- 2. Dispatch Rule Definition -->
@@ -89,11 +85,9 @@ FreeMarker is a powerful and widely used template engine for generating any kind
8985
```xml
9086
<!-- 1. FreeMarker View Dispatcher Bean Configuration -->
9187
<bean id="freeMarkerViewDispatcher" class="com.aspectran.freemarker.view.FreeMarkerViewDispatcher">
92-
<properties>
93-
<property name="prefix" value="/WEB-INF/templates/"/>
94-
<property name="suffix" value=".ftl"/>
95-
<property name="templateEngine" value-ref="freeMarkerEngine"/>
96-
</properties>
88+
<property name="prefix" value="/WEB-INF/templates/"/>
89+
<property name="suffix" value=".ftl"/>
90+
<property name="templateEngine" value-ref="freeMarkerEngine"/>
9791
</bean>
9892

9993
<!-- 2. Dispatch Rule Definition -->

_pages/ko/aspectran/user-guide.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -634,20 +634,20 @@ Aspectran의 설정 파일(XML 또는 APON) 내 대부분의 엘리먼트에서
634634
<aspectran>
635635
636636
<!-- 'dev' 프로필이 활성화될 때만 적용되는 개발용 데이터베이스 설정 -->
637-
<properties profile="dev">
637+
<environment profile="dev">
638638
<property name="db.driver">org.h2.Driver</property>
639639
<property name="db.url">jdbc:h2:mem:devdb;DB_CLOSE_DELAY=-1</property>
640640
<property name="db.username">sa</property>
641641
<property name="db.password"></property>
642-
</properties>
642+
</environment>
643643
644644
<!-- 'prod' 프로필이 활성화될 때만 적용되는 운영용 데이터베이스 설정 -->
645-
<properties profile="prod">
645+
<environment profile="prod">
646646
<property name="db.driver">com.mysql.cj.jdbc.Driver</property>
647647
<property name="db.url">jdbc:mysql://prod.db.server:3306/main_db</property>
648648
<property name="db.username">prod_db_user</property>
649649
<property name="db.password">!PROD_DB_PASSWORD!</property>
650-
</properties>
650+
</environment>
651651
652652
<!-- 'prod' 프로필이 활성화될 때만 특정 설정 파일을 포함 -->
653653
<append file="/config/metrics-context.xml" profile="prod"/>
@@ -679,20 +679,20 @@ Aspectran의 설정 파일(XML 또는 APON) 내 대부분의 엘리먼트에서
679679
<description>환경에 따라 다른 DB 설정을 로드합니다.</description>
680680

681681
<!-- 개발 환경 설정 -->
682-
<properties profile="dev">
682+
<environment profile="dev">
683683
<property name="db.driver">org.h2.Driver</property>
684684
<property name="db.url">jdbc:h2:mem:devdb;DB_CLOSE_DELAY=-1</property>
685685
<property name="db.username">sa</property>
686686
<property name="db.password"></property>
687-
</properties>
687+
</environment>
688688

689689
<!-- 운영 환경 설정 -->
690-
<properties profile="prod">
690+
<environment profile="prod">
691691
<property name="db.driver">com.mysql.cj.jdbc.Driver</property>
692692
<property name="db.url">jdbc:mysql://prod.db.server:3306/main_db</property>
693693
<property name="db.username">prod_db_user</property>
694694
<property name="db.password">!PROD_DB_PASSWORD!</property>
695-
</properties>
695+
</environment>
696696

697697
<!-- 데이터 소스 빈 정의 -->
698698
<bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource">
@@ -849,11 +849,9 @@ Aspectran은 액션 메소드의 처리 결과를 클라이언트에 반환하
849849
```xml
850850
<!-- 1. Thymeleaf 뷰 디스패처 빈 설정 -->
851851
<bean id="thymeleafViewDispatcher" class="com.aspectran.thymeleaf.view.ThymeleafViewDispatcher">
852-
<properties>
853-
<property name="prefix" value="/WEB-INF/templates/"/>
854-
<property name="suffix" value=".html"/>
855-
<property name="templateEngine" value-ref="thymeleafEngine"/>
856-
</properties>
852+
<property name="prefix" value="/WEB-INF/templates/"/>
853+
<property name="suffix" value=".html"/>
854+
<property name="templateEngine" value-ref="thymeleafEngine"/>
857855
</bean>
858856

859857
<!-- 2. Translet에서 Dispatch 규칙을 사용하여 Thymeleaf 뷰 호출 -->

0 commit comments

Comments
 (0)