Abnormal troubleshooting

**

java.sql.SQLException: Io exception: Invalid number format for port number

  • Exception code

**

Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: java.sql.SQLException: Io 异常: Invalid number format for port number
### The error may exist in com/zrrd/mapper/DeptMapper.xml
### The error may involve deptMapper.queryDept
### The error occurred while executing a query
### Cause: java.sql.SQLException: Io 异常: Invalid number format for port number
	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:104)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:95)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:91)
	at com.zrrd.dao.DeptDaoImpl.queryDept(DeptDaoImpl.java:14)
	at com.zrrd.test.Test.main(Test.java:14)
  • The problem is that the
    jdbc database link configuration does not write the port number

  • Solution
    Check jdbc connection configuration information

Published 7 original articles · liked 0 · visits 84

Guess you like

Origin blog.csdn.net/qq_43717274/article/details/105402790