Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提供一个springcloud例子,仅供参考 #3

Open
FansinZhao opened this issue Feb 23, 2018 · 2 comments
Open

提供一个springcloud例子,仅供参考 #3

FansinZhao opened this issue Feb 23, 2018 · 2 comments

Comments

@FansinZhao
Copy link

FansinZhao commented Feb 23, 2018

根据liuyangming的springcloud例子,做了以下几个修改
1 使用mybatis作为持久层工具.
2 使用application.yml配置数据源,数据源使用tomcat jdbc pool.
3 完善初始化sql.
4 docker化,使用docker,docker compose编排,提供standalone和docker两种运行方式.
5 提供完整测试 curl,详见consumer的controller注释.
6 使用alibaba的代码规范扫描,除了controller未通过soa命名.

FansinZhao bytetcc

https://github.com/FansinZhao/spring-cloud/tree/master/bytetcc

@liuyangming
Copy link
Owner

使用SpringCloud时,0.4.x版本强制要求instanceId格式必须为:${ip}:${可以自行指定}:${port},这个需要注意一下哦。

@FansinZhao
Copy link
Author

@liuyanming 我已经修改并push了,现在instanceId格式是:${ip}:${application.name}:${port}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants