当Oracle服务未开启时报的异常错误
控制台报的错误信息
Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.sql.SQLException: The Network Adapter could not establish the connection
### The error may exist in com/gxy/dao/StudentMapper.xml
### The error may involve com.gxy.dao.StudentDao.selectConditions
### The error occurred while executing a query
### Cause: java.sql.SQLException: The Network Adapter could not establish the connection
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:150)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
at com.sun.proxy.$Proxy3.selectConditions(Unknown Source)
at com.gxy.service.impl.StudentServiceImpl.selectCondtions(StudentServiceImpl.java:95)
at com.gxy.test.TestMain