jenkinsfile访问mysql失败_jenkins构建好之后打开页面提示jdbc连接有问题

在Intellij里运行tomcat打开项目是可以在浏览器上打开这个页面的,然后我Jenkins里部署也好了,也提示tomcat启动成功,但是浏览器访问就出以下错误(这里是片段),看样子是jdbc连接问题

Type Exception Report

Message An exception occurred processing [index.jsp] at line [3]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exceptionorg.apache.jasper.JasperException: An exception occurred processing [index.jsp] at line [3]

1: 

2: 

3: 

4: 

Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:626)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:500)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)

javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Root Causeorg.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

### The error may exist in com/lesson/dao/MenuDAO.java (best guess)

### The error may involve com.lesson.dao.MenuDAO.getMenuByMidCid

### The error occurred while executing a query

### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; n

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值