springboot打包部署问题

qq_38842654 2018-01-10 03:08:35
SpringBoot项目打包部署到linux环境的服务器上,访问报数据库连接错误(sqlserver数据库),数据库名称,密码,路径都没问题。数据库配置代码:

spring.datasource.url = jdbc:sqlserver://localhost:1433;DatabaseName=jiyudb
spring.datasource.username =
spring.datasource.password =
spring.datasource.driverClassName = com.microsoft.sqlserver.jdbc.SQLServerDriver

报错代码:

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Jan 10 14:57:37 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database! ### The error may exist in com/yva/dao/UserDao.java (best guess) ### The error may involve com.yva.dao.UserDao.checkLogin ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!

请各位大神指点!!!
...全文
256 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧