idea 搭建ssh框架,配置的数据库ip地址为远程ip,结果请求了本地IP地址,什么原因

用idea整合ssh框架,spring管理hibernate配置文件,数据库配置ip地址为远程服务的IP地址,结果jdbc连接时请求了本地ip地址,具体异常日志如下:09-Jul-2017 09:36:10.193 WARN [RMI TCP Connection(3)-127.0.0.1] org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService HHH000342: Could not obtain connection to query metadata : Access denied for user 'root '@'1.180.235.69' (using password: YES)
09-Jul-2017 09:39:34.591 WARN [http-nio-8080-exec-2] org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions SQL Error: 1045, SQLState: 28000
09-Jul-2017 09:39:34.592 ERROR [http-nio-8080-exec-2] org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions Access denied for user 'root '@'1.180.235.69' (using password: YES)
09-Jul-2017 09:39:34.598 严重 [http-nio-8080-exec-2] org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler.error Exception occurred during processing request: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:155)
at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1419)
at cn.hz.area.dao.TestDao.save(TestDao.java:16)
at cn.hz.area.service.TestService.save(TestService.java:16)
at cn.hz.area.action.TestAction.execute(TestAction.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
。。。什么原因!好几天时间找不到问题原因。spring配置hibernate信息如下图片说明

提示的内容,说是你的用户名或密码不对,连接被拒绝

突然跳出这个东西。。。图片说明

上面提示中的ip地址是本地ip地址,可是在配置文件中配的都是远程ip地址,这个怎么处理?idea的问题?