blackfox.ma

Results comments of blackfox.ma

HA如何设置位点? @agapple

Caused by: java.lang.NullPointerException at io.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:139) at sun.reflect.GeneratedMethodAccessor187.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59) at com.sun.proxy.$Proxy133.execute(Unknown Source) at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:46) at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74) at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50) at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)...

@Bean(name = "shardingDataSource") @Primary public DataSource getShardingDataSource() throws SQLException { // 读写分离配置 MasterSlaveRuleConfiguration masterSlaveRuleConfig = new MasterSlaveRuleConfiguration("ds", "fcWriteDataSource", Arrays.asList("fcRead1DataSource", "fcRead2DataSource"), MasterSlaveLoadBalanceAlgorithmType.getDefaultAlgorithmType().getAlgorithm()); Set masterSlaveRuleConfigurationSet = new HashSet(); masterSlaveRuleConfigurationSet.add(masterSlaveRuleConfig); ShardingRuleConfiguration shardingRuleConfig =...

insert into f_order_business_model ( ) values ( #{item.orderId,jdbcType=BIGINT} , .... )

for example: HintManager.getInstance().setMasterRouteOnly(); final List list = list(wrapper); ... then : thow Exception but : before upgrade , it can route to master Last version: 3.1.0

for HintManager.getInstance() , in 4.0.0-RC2 version . add Preconditions.checkState for check . so,it need manual close or use try...catch... ?