Closed wangzhaoqiang closed 11 months ago
连接池或者数据库的事情.
oracle:
url: jdbc:wrap-jdbc:filters=encoding:jdbc:oracle:thin:@127.0.0.1:1521:orcl
username: scott
password: tiger
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: oracle.jdbc.OracleDriver
druid:
validation-query: SELECT 1 FROM DUAL
connection-properties:
clientEncoding: GBK
serverEncoding: ISO-8859-1
这么写,希望能帮到你
Enviroment
JDK Version(required): 1.8
SpringBoot Version(required): 2.5.15
dynamic-datasource-spring-boot-starter Version(required):4.2.0
druid Version(optional):1.2.16
oracle version:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
oracle NLS_CHARACTERSET:US7ASCII
Describe what happened
Expected Result: 插入中文正常显示。
Actual Result: 插入中文为乱码。
这是我的配置文件