简体   繁体   中英

How to fix 'java.sql.SQLException: ORA-01017: invalid username/password; logon denied' error in spring-boot

when i run spring-boot in eclipse, there is error:"java.sql.SQLException: ORA-01017: invalid username/password; logon denied".but when i use sqlplus log in this username and password it right.Please help me to solve this problem.Thanks!

This is my application.properties, my oracle's version is 12c

spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL
spring.datasource.data-username=C##ITEST
spring.datasource.data-password=1234

关键字不正确:请使用“用户名”代替“数据用户名”,并使用“密码”代替“数据密码”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM