Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

注意:
config-sharding.yaml 配置
dataSourceCommon,password 后加密码,密码前需要有空格

必做题 2,使用shardingsphere-proxy中间件 orders.sql是数据库脚本
config-sharding.yamlserver.yaml是apache-shardingsphere-5.0.0-alpha-shardingsphere-proxy-bin的配置文件
SimpleJDBCMain.java是增删改查的main方法

必做题 6
没有业务逻辑,只是一个demo,基于 hmily TCC
demo.sql是数据库脚本,没有写数据库逻辑,连接数据库是为了程序能正常运行;

1、先启动Eureka服务EurekaServerApplication.java

2、再启动SpringCloudHmilyDemoApplication.java

3、访问http://localhost:8090/hello/say,查看控制台,控制台打印confirm hello world