xw
xw
test
同样的问题`can not connect to fescar-server. `,server没有正确启动,启动的时候可能没能正确的传入端口和文件的参数,使用下面的方式启动源码就可以了. # 启动服务 * 源码方式启动 mvn exec:java -Dexec.mainClass="com.alibaba.fescar.server.Server" -Dexec.args="8091 /Users/m65536/Downloads/fescar-server-0.1.0/data" * release包方式启动 sh fescar-server.sh 8091 /Users/m65536/Downloads/fescar-server-0.1.0/data # 启动example * 首先修改数据库配置为自己的本地配置保证数据库可以正常连接 * AccountServiceImpl mvn exec:java -Dexec.mainClass="com.alibaba.fescar.tm.dubbo.impl.AccountServiceImpl"...
第二个问题,同样也遇到,建议把hint做出一个注解,方便调用者使用。
看源码dataSourceMap.remove(each.getMasterDataSourceName());,dataSourceMap被remove掉了,不明白我的配置哪里不对 ` public ShardingRule build(final Map dataSourceMap) throws SQLException { Preconditions.checkNotNull(dataSourceMap, "dataSources cannot be null."); Preconditions.checkArgument(!dataSourceMap.isEmpty(), "dataSources cannot be null."); processDataSourceMapWithMasterSlave(dataSourceMap); Collection tableRules = new LinkedList(); for (TableRuleConfiguration each :...
` shardingRuleConfig.setDefaultDatabaseShardingStrategyConfig(new InlineShardingStrategyConfiguration("sharding_key", PreciseDatabaseShardingAlgorithm.class.getName())); shardingRuleConfig.setDefaultTableShardingStrategyConfig(new StandardShardingStrategyConfiguration("sharding_key", PreciseTableShardingAlgorithm.class.getName())); ` 这里错了,InlineShardingStrategyConfiguration应该换成StandardShardingStrategyConfiguration
@dutrieux 解决问题
npm --vs2015 install --global windows-build-tools waiting for done all.
今天尝试了13:30和14:30 都没有成功;