在經過各種配置后,搭建起來了一個mysql-proxy的讀寫分離服務,但是在通過spring配置資料源連接的時候一直卡在加載的時候無法啟動,卡住的地方日志如下:
2017-12-14 14:35:19,226 [RMI TCP Connection(3)-127.0.0.1] [org.apache.ibatis.io.ResolverUtil]-[DEBUG] Checking to see if class com.geekfaith.entity.User matches criteria [is assignable to Object]
2017-12-14 14:35:19,228 [RMI TCP Connection(3)-127.0.0.1] [org.apache.ibatis.io.ResolverUtil]-[DEBUG] Checking to see if class com.geekfaith.entity.UserOperation matches criteria [is assignable to Object]
2017-12-14 14:35:19,229 [RMI TCP Connection(3)-127.0.0.1] [org.apache.ibatis.io.ResolverUtil]-[DEBUG] Checking to see if class com.geekfaith.entity.UserOperationType matches criteria [is assignable to Object]
2017-12-14 14:35:19,231 [RMI TCP Connection(3)-127.0.0.1] [org.mybatis.spring.SqlSessionFactoryBean]-[DEBUG] Scanned package: 'com.geekfaith.entity' for aliases
2017-12-14 14:35:19,231 [RMI TCP Connection(3)-127.0.0.1] [org.mybatis.spring.SqlSessionFactoryBean]-[DEBUG] Registered plugin: 'com.baomidou.mybatisplus.plugins.CachePaginationInterceptor@6ce0a0d0'
Thu Dec 14 14:35:19 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
14-Dec-2017 14:35:22.244 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Java\apache-tomcat-8.0.28\webapps\manager
14-Dec-2017 14:35:22.349 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Java\apache-tomcat-8.0.28\webapps\manager has finished in 103 ms
在網上各種找也沒有找到不知道什么原因,一下是我的資料源和組態檔內容
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://192.168.1.162:4040/blog?characterEncoding=utf-8
jdbc.username=root
jdbc.password=root
<!-- 資料庫連接池 -->
<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource"
init-method="init" destroy-method="close">
<property name="url" value="https://bbs.csdn.net/topics/${jdbc.url}"/>
<property name="username" value="https://bbs.csdn.net/topics/${jdbc.username}"/>
<property name="password" value="https://bbs.csdn.net/topics/${jdbc.password}"/>
<property name="driverClassName" value="https://bbs.csdn.net/topics/${jdbc.driver}"/>
<property name="maxActive" value="https://bbs.csdn.net/topics/10"/>
<property name="minIdle" value="https://bbs.csdn.net/topics/5"/>
</bean>
uj5u.com熱心網友回復:
解決了嗎,我碰到了同樣的問題轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/235056.html
標籤:Web 開發
