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啟動超時以及啟動之後開啟網頁報404錯誤的解決方法Tomcat網頁
- tomcat定時啟動指令碼Tomcat指令碼
- Tomcat啟動時無法找到配置檔案異常(eclipse)TomcatEclipse
- Spring Boot中Tomcat是怎麼啟動的Spring BootTomcat
- Spring Boot 啟動原理解析(二) Tomcat 啟動詳解Spring BootTomcat
- 將Tomcat配置到你的mac電腦上,命令列啟動tomcatTomcatMac命令列
- Tomcat啟動時Initializing Spring FrameworkServlet 'springmvc'卡住,並且不報錯TomcatFrameworkServletSpringMVC
- tomcat連線池配置,解決資料庫超時Tomcat資料庫
- Tomcat增加Context配置導致啟動的時候專案載入兩次TomcatContext
- spring boot 配置外接tomcatSpring BootTomcat
- CentOS 7 下Tomcat啟動超慢的原因及解決方案CentOSTomcat
- Windows環境同時啟動多個TomcatWindowsTomcat
- Linux之換源、Tomcat及jdk的安裝配置和設定Tomcat自動啟動LinuxTomcatJDK
- Tomcat應用報redis超時的故事TomcatRedis
- tomcat啟動時SessionIdGeneratorBase.createSecureRandom耗時5分鐘的問題TomcatSessionORBrandom
- 如何同時啟動多個Tomcat伺服器Tomcat伺服器
- Spring Boot移除內嵌Tomcat,使用非web方式啟動Spring BootTomcatWeb
- spring boot(7) 配置外部tomcat(1)Spring BootTomcat
- 設定定時器——Tomcat啟動後開始執行定時器Tomcat
- 解決tomcat啟動時無法找到GroovyObject 異常TomcatObject
- Tomcat啟動指令碼Tomcat指令碼
- tomcat 啟動失敗Tomcat
- spring boot啟動載入外部配置檔案Spring Boot
- Tomcat 7 啟動分析(一)啟動指令碼Tomcat指令碼
- httpd使用systemctl啟動超時解決過程httpd
- Linux配置JavaEE環境 Linux中安裝JDK、Tomcat、mysql 設定Tomcat自啟動、設定mysql自啟動LinuxJavaJDKTomcatMySql
- SpringBootApplication是如何啟動Tomcat的? | 破解SpringBoot Tomcat啟動之謎 !Spring BootAPPTomcat
- goland的啟動配置GoLand
- 使用lazyInit縮短Spring Boot啟動時間Spring Boot
- Tomcat啟動流程簡析Tomcat
- Tomcat直接啟動正常,通過myeclipse啟動tomcat記憶體溢位TomcatEclipse記憶體溢位
- Linux啟動時讀取配置檔案的順序Linux
- 程式在Tomcat中的啟動順序Tomcat
- tomcat無法啟動的解決方法Tomcat
- 深入淺出Tomcat/2 - Tomcat啟動和停止Tomcat
- 詳解Tomcat系列(一)-從原始碼分析Tomcat的啟動Tomcat原始碼
- 延緩Spring Boot啟動時間直到資料庫啟動的方法和原始碼 - MartenSpring Boot資料庫原始碼