springboot启动过程中数据库连接池初始化后直接关闭了
2018-11-17 23:08
295 查看
最近在项目中增加新功能模块时遇到这样的问题:项目加载完成后,在初始化数据库连接池时,连接池关闭了。
[code]Looking for resource handler mappings Found resource handler mapping: URL pattern=,//**/favicon.ico^, locations:[class path resource [META-INF/resources/], class path resource [resources/], class path resource [static/], class path resource [public/], l Found resource handler mapping: URL pattern=,//webjars/**,/, locations:[class path resource [META-INF/resources/webjars/]], resolvers=[org.springframework, web.servlet, resource.PathResourceResolver@4e8afdad] Found resource handler mapping: URL pattern:”/**”,locations:[class path resource [META-INF/resources/], class path resource [resources/], class path resource [static/], class path resource [public/], URL [file:E:/ Tomcat started on port(s): 8080 (http) with context path Adding PropertySource * server, ports' with highest search precedence Started SzinsApplication in 8.129 seconds (JVM running for 9.13) {dataSource-l} inited {dataSource-l} closed
原因:参数类型写错了 parameterType写成了parameterMap
[code]<select id="getMenuLabelCode" parameterMap="java.lang.String" resultType="java.lang.String"> SELECT t2.CODE FROM dp_directory_split_sub tl INNER JOIN dp_base_label t2 ON tl.ELE_ID = t2.ID WHERE tl.SPLIT_ID = #{splitld, jdbcType=VARCHAR} 〈/select〉
阅读更多
相关文章推荐
- Spring Boot启动过程(七):Connector初始化
- spring5/springboot2源码学习 -- spring boot 应用的启动过程
- Spring Boot启动过程完全解析(二)
- Spring Boot启动过程(五)之Springboot内嵌Tomcat对象的start教程详解
- spring boot启动过程
- Spring Boot的应用启动与关闭的方法
- Spring之SpringMVC(源码)启动初始化过程分析
- spring boot 启动就自动关闭 之 找不到bean
- SpringBoot 应用程序启动过程探秘
- Oracle 数据库实例启动关闭过程
- Spring Boot启动过程(四):Spring Boot内嵌Tomcat启动
- 启动画面关闭后才显示主程序...在这过程中进行程序的初始化.
- 数据库的启动和关闭过程
- Oracle 数据库实例启动关闭过程
- Spring Boot启动过程(六):内嵌Tomcat中StandardHost、StandardContext和StandardWrapper的启动
- [Spring Boot] 2. Spring Boot 启动过程定制化
- SpringBoot启动直接结束 控制台只显示 “Process finished with exit code 1” 处理方式
- spring 启动过程中检测bonecp连接池
- 深入讲解spring boot中servlet的启动过程与原理