(灌水警告)官方教程开始实践!MyBatis
作者:
迷弟
,
2024-05-27 00:36:02
,
所有人可见
,
阅读 20
spring.application.name=demo2
# MyBatis configuration
mybatis.type-aliases-package=com.example.demo.model
mybatis.mapper-locations=classpath:mapper/*.xml
#Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
#
#Reason: Failed to determine a suitable driver class
# Oracle database connection settings
spring.datasource.url=jdbc:oracle:thin:@192.168.1.4:1521/ORCLPDB
spring.datasource.username=user
spring.datasource.password=password
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
注意Idea要到驱动程序哪里配置一下,或者重启一下Idea.(反正重启配置完就好了)