springboot启动过程中数据库连接池初始化后直接关闭了

最近在项目中增加新功能模块时遇到这样的问题:项目加载完成后,在初始化数据库连接池时,连接池关闭了。

 

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

<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〉

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值