1. 程式人生 > >Spring 簡單配置連線資料庫

Spring 簡單配置連線資料庫

#埠號
server:
port: 8899
spring:
datasource:
driver-class-name: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@//xx.xx.x.xx:1521/orcl
username: xxxx
password: xxxx

mybatis:
#實體類所做包
type-aliases-package: com.example.demo.entity
#mapper.xml所在位置
mapper-locations: classpath:mapper/*.xml
configuration:
variables:
attendanceDataBaseName: