Navicat 连接 Oracle 报 ORA-03135: connection lost contact
ORA-28547: connection to server failed, probable Oracle Net admin error
oci.dll 版本太低,需要重新下载并指定
his:
#Oracle
driver-class-name: oracle.jdbc.driver.OracleDriver
#url: jdbc:oracle:thin:@//<host>:<port>/<SERVICE_NAME> 服务名的方式连接
#url: jdbc:oracle:thin:@<host>:<port>:<SID> SID 的方式连接
url: jdbc:oracle:thin:@172.16.17.4:1521/his_db
username: his
password: hispwd
#用来检测连接是否有效的sql 必须是一个查询语句( mysql中为 select 'x' oracle中为 select 1 from dual)
validation-query: select 1 from dual
#将MyBatis Mapper xml 放到 jar 包外面,发布时改成 file:mapper/hospital/*.xml
mapper-locations: classpath*:mapper/hospital/*.xml