springboot打包部署问题
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!
请各位大神指点!!!