tomcat 啟動dangdang的spring配置超時
<?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:rdb="http://www.dangdang.com/schema/ddframe/rdb"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.dangdang.com/schema/ddframe/rdb http://www.dangdang.com/schema/ddframe/rdb/rdb.xsd">
<rdb:strategy id="testSharding" sharding-columns="age"
algorithm-expression="person_${age.longValue()%2}"/>
<rdb:data-source id="mysqlPostShardingDataSource">
<rdb:sharding-rule data-sources="mysqlPostDataSource">
<rdb:table-rules>
<rdb:table-rule logic-table="person" actual-tables="person_${0..1}"
table-strategy="testSharding"/>
</rdb:table-rules>
<rdb:default-database-strategy sharding-columns="none" algorithm-class="com.dangdang.ddframe.rdb.sharding.api.strategy.database.NoneDatabaseShardingAlgorithm"/>
<rdb:default-table-strategy sharding-columns="none" algorithm-class="com.dangdang.ddframe.rdb.sharding.api.strategy.table.NoneTableShardingAlgorithm"/>
</rdb:sharding-rule>
</rdb:data-source>
</beans>
tomcat啟動時載入到spring-sharding.xml就停止,檢查頭部xmlns是否完整,尤其www.dangdang.com的,確認正常的話應該就是少引入了dangdang整合spring的包,
<!-- 資料庫分庫 -->
<dependency>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-core</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>com.dangdang</groupId>
<artifactId>sharding-jdbc-config-spring</artifactId>
<version>1.4.1</version>
</dependency>
相關文章
- Apollo啟動配置排查,超時時間的配置
- Tomcat啟動時Initializing Spring FrameworkServlet 'springmvc'卡住,並且不報錯TomcatFrameworkServletSpringMVC
- Spring Boot中Tomcat是怎麼啟動的Spring BootTomcat
- spring boot 配置外接tomcatSpring BootTomcat
- Linux之換源、Tomcat及jdk的安裝配置和設定Tomcat自動啟動LinuxTomcatJDK
- SpringBootApplication是如何啟動Tomcat的? | 破解SpringBoot Tomcat啟動之謎 !Spring BootAPPTomcat
- vagrant up 啟動超時
- CentOS 7 下Tomcat啟動超慢的原因及解決方案CentOSTomcat
- Windows環境同時啟動多個TomcatWindowsTomcat
- Spring Boot移除內嵌Tomcat,使用非web方式啟動Spring BootTomcatWeb
- Linux配置JavaEE環境 Linux中安裝JDK、Tomcat、mysql 設定Tomcat自啟動、設定mysql自啟動LinuxJavaJDKTomcatMySql
- tomcat 啟動失敗Tomcat
- 設定定時器——Tomcat啟動後開始執行定時器Tomcat
- SpringBoot配置外部Tomcat專案啟動流程原始碼分析(長文)Spring BootTomcat原始碼
- 詳解Tomcat系列(一)-從原始碼分析Tomcat的啟動Tomcat原始碼
- 深入淺出Tomcat/2 - Tomcat啟動和停止Tomcat
- Tomcat啟動流程簡析Tomcat
- Linux下Tomcat重新啟動LinuxTomcat
- tomcat無法啟動的解決方法Tomcat
- Tomcat在SpringBoot中是如何啟動的TomcatSpring Boot
- Tomcat 7 啟動分析(三)Digester 的使用Tomcat
- 使用lazyInit縮短Spring Boot啟動時間Spring Boot
- 9. 啟動、關閉tomcatTomcat
- 在linux下啟動tomcat命令LinuxTomcat
- 如何在linux下啟動tomcatLinuxTomcat
- Tomcat原始碼分析--啟動流程Tomcat原始碼
- goland的啟動配置GoLand
- Spring Boot 學習系列(11)—tomcat引數配置建Spring BootTomcat
- tomcat配置Tomcat
- spring 啟動的認識Spring
- Nginx的超時timeout配置詳解Nginx
- tomcat 8443埠開啟,配置JDBC連結池TomcatJDBC
- httpd使用systemctl啟動超時解決過程httpd
- Spring Boot 3用CDS提升20%啟動時間Spring Boot
- 延緩Spring Boot啟動時間直到資料庫啟動的方法和原始碼 - MartenSpring Boot資料庫原始碼
- linux配置超時不操作自動退出登入TMOUTLinux
- spring-cloud-搭建Eureka出現內建tomcat無法啟動的問題解決方案SpringCloudTomcat
- Tomcat 第二篇:啟動流程Tomcat