Connecting to Database...[FAILED]Invalid number format for port number(链接ORACLE时忘记加端口出现的错误)

Invalid number format for port number(链接ORACLE时忘记加端口出现的错误)

JspException:org.apache.commons.dbcp.SQLNestedException: Cannotcreate PoolableConne
ctionFactory, cause: Io 异常: Invalid number format for portnumber
Cannot create PoolableConnectionFactory

这个错误是oracle的url连接里面把端口给漏了,在TOMCAT中的数据库配置文件中把数据库的链接中忘加1521端口号,写成了:@127.0.0.1:ORCL,改为:@127.0.0.1:1521:ORCL即可!

猜你喜欢

转载自blog.csdn.net/Grace_1203/article/details/81902298
今日推荐