JerryGHH commented on issue #14463:
URL:
https://github.com/apache/shardingsphere/issues/14463#issuecomment-1005348282
> Can it work normally? And can you offer a demo for me to try?
When the application starts, console will output exception information, but
it will not block application start, work normally.
Related configuration:
```javascript
<bean id="db1" class="com.alibaba.druid.pool.DruidDataSource"
destroy-method="close">
<property name="url" value="jdbc:oracle:thin:@*.*.*.*:1521/**" />
<property name="username" value="root" />
<property name="password" value="root123" />
</bean>
<sharding:sharding-algorithm id="dljlTableAlgorithm" type="INTERVAL">
<props>
<prop key="datetime-pattern">yyyy-MM-dd HH:mm:ss</prop>
<prop key="datetime-lower">2022-01-01 00:00:00</prop>
<prop key="sharding-suffix-pattern">yyyyMM</prop>
<prop key="datetime-interval-amount">1</prop>
<prop key="datetime-interval-unit">MONTHS</prop>
</props>
</sharding:sharding-algorithm>
<sharding:standard-strategy id="dljlTableStrategy" sharding-column="DLSJ"
algorithm-ref="dljlTableAlgorithm" />
<sharding:rule id="shardingRules">
<sharding:table-rules>
<sharding:table-rule logic-table="YH_DLJL"
actual-data-nodes="db1.YH_DLJL_20220$->{1..9},db1.yh_dljl_2022$->{10..12}"
table-strategy-ref="dljlTableStrategy"/>
</sharding:table-rules>
</sharding:rule>
<shardingsphere:data-source id="shardingDataSource" data-source-names="db1"
rule-refs="shardingRules"></shardingsphere:data-source>
```
POM xml:
```javascript
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core-spring-namespace</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.1.0</version>
</dependency>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]