代码拉取完成,页面将自动刷新
同步操作将从 heyuxian/MCloud 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
MCloud 是基于Spring Cloud实现的简单微服务系统。提供了微服务开发中常用的模块:
其他模块:
UI界面:
JDK 1.8 以上
如果使用Idea 进行开发,请安装 lombok插件
数据库:因为使用的是hibernate进行开发,理论上是支持多种数据库,但目前只提供了mysql脚本,如有需要,可以对application.yml
做如下修改,使hibernate自动生成对应表结构
spring:
jpa:
hibernate:
# update 改为 create,生成表之后需改回 update
ddl-auto: create
下载项目
git clone https://github.com/heyuxian/mcloud.git
cd 项目目录/mcloud
执行脚本
首先在数据库中执行以下两个脚本:
mcloud/sql/db_oauth.sql
mcloud/sql/db_blog.sql
修改对应配置文件中的数据库用户名及密码:
启动OAuth Server: 详细配置
cd mcloud-oauth-server
mvn clean install
mvn spring-boot:run
访问地址: http://localhost:8043/uaa/swagger-ui.html
启动认证中心: 详细配置
cd mcloud-uia
mvn clean install
mvn spring-boot:run
访问地址: http://localhost:8443/uia/swagger-ui.html
启动博客服务: 详细配置
cd mcloud-blog
mvn clean install
mvn spring-boot:run
访问地址: http://localhost:8081/swagger-ui.html
注:
若是对于本项目有任何问题或建议,可以在github上提Issue,如果是码云,可以直接发表评论,提Issue或是直接给我发私信.同时,如果你愿意参与开发,欢迎提PR.
Copyright 2017
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。