You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
一开始报错
org.yaml.snakeyaml.representer.Representer: method 'void ()' not found
引入
org.yaml
snakeyaml
1.33
报错
Caused by: java.lang.ClassNotFoundException: org.yaml.snakeyaml.inspector.TagInspector
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[?:?]
Question
For English only, other languages will not accept.
Before asking a question, make sure you have:
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
一开始报错
org.yaml.snakeyaml.representer.Representer: method 'void ()' not found
引入
org.yaml
snakeyaml
1.33
报错
Caused by: java.lang.ClassNotFoundException: org.yaml.snakeyaml.inspector.TagInspector
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[?:?]
配置如下
shardingsphere:
datasource:
names: base-log
base-log:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.103.220:3309/base_log?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username: "XXXXXXX"
password: "XXXXXXXXXXX"
rules:
sharding:
tables:
login_log:
actual-data-nodes: base-log.login_log
table-strategy:
standard:
sharding-column: create_time
sharding-algorithm-name: table-year-month
sharding-algorithms:
table-year-month:
type: CLASS_BASED
props:
strategy: STANDARD
algorithmClassName: com.maxvision.base.log.config.TableShardingAlgorithm
props:
sql.show: true # Sharding-JDBC的属性配置,这项配置是将SQL打印输出到日志
The text was updated successfully, but these errors were encountered: