和一般mysql只需改动以下即可,其它mybatis,mapper,dao等都照旧
pom.xml
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-jdbc</artifactId>
<version>3.0.30</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.4</version>
</dependency>
application.yml
spring:
datasource:
driver-class-name: com.orientechnologies.orient.jdbc.OrientJdbcDriver
url: jdbc:orient:remote:192.168.1.12/test
username: root
password: xxxx
initialSize: 5
maxActive: 100
minIdle: 3
maxWait: 50000