# Community **Repository Path**: chelsea_h/Community ## Basic Information - **Project Name**: Community - **Description**: 仿照elasticsearch社区的一个码匠社区论坛,Spring Boot项目,视频地址:https://www.bilibili.com/video/BV1r4411r7au - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-02-29 - **Last Updated**: 2021-04-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 社区项目 Codelearing Community ## 部署 --Git --JDK --Maven --MySQL ## 步骤 1:yum update 2:yum install git 3:mkdir CodeLearing 4:cd CodeLearing 5:git clone https://gitee.com/chelsea_h/Community.git 6:yum install maven 7:java -version(查看Java版本,默认安装了1.8) 8:mvn clean compile package(执行maven) 9:复制修改配置文件:cp src/main/resources/application.properties src/main/resources/application-production.properties 10:mvn package 11:运行程序:java -jar -Dspring.profiles.active=production target/community-0.0.1-SNAPSHOT.jar 12:杀死Java进程并判断是否杀死:ps -aux | grep java 13:git pull拿到代码 ## 资料 [示例社区:https://www.elastic.co/cn/](https://www.elastic.co/cn/) [Spring文档:https://spring.io/guides](https://spring.io/guides) [Spring插件:https://spring.io/guides/gs/serving-web-content/](https://spring.io/guides/gs/serving-web-content/) [spring boot整合mybatis:http://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/index.html](http://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/index.html) [29.1.1 Embedded Database Support:https://docs.spring.io/spring-boot/docs/2.0.0.RC1/reference/htmlsingle/](https://docs.spring.io/spring-boot/docs/2.0.0.RC1/reference/htmlsingle/) [Lombok(自动插入get set等):https://projectlombok.org/](https://projectlombok.org/) [thymeleaf官方文档:https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#setting-attribute-values](https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#setting-attribute-values) [热部署:https://docs.spring.io/spring-boot/docs/2.0.0.RC1/reference/htmlsingle/](https://docs.spring.io/spring-boot/docs/2.0.0.RC1/reference/htmlsingle/) [拦截器:https://docs.spring.io/spring/docs/5.0.3.RELEASE/spring-framework-reference/web.html#mvc-handlermapping-interceptor](https://docs.spring.io/spring/docs/5.0.3.RELEASE/spring-framework-reference/web.html#mvc-handlermapping-interceptor) [MybatisGenerator官方文档:http://mybatis.org/generator/](http://mybatis.org/generator/) [markdown插件](https://github.com/pandao/editor.md) ## 工具 [码云仓库:https://gitee.com/chelsea_h/Community](https://gitee.com/chelsea_h/Community) [如何添加ssh-key:https://gitee.com/help/articles/4181#article-header0](https://gitee.com/help/articles/4181#article-header0) [git下载地址:https://git-scm.com/](https://git-scm.com/) [样式下载地址:https://github.com/twbs/bootstrap/releases/download/v3.3.7/bootstrap-3.3.7-dist.zip](https://github.com/twbs/bootstrap/releases/download/v3.3.7/bootstrap-3.3.7-dist.zip) [oAuth授权:https://gitee.com/oauth/applications](https://gitee.com/oauth/applications) [flyway:多人协作数据库:https://flywaydb.org/](https://flywaydb.org/) ## 代码 fly整合:mvn flyway:migrate flyway修复:要么手动在数据库中删除错误的那一行数据,要么运行mvn flyway:repair MybatisGenerator:mvn -Dmybatis.generator.overwrite=true mybatis-generator:generate 添加此配置后,修改前端样式也重新部署项目:spring.devtools.restart.exclude=static/**,public/** 运行mybatis Generator:mvn -Dmybatis.generator.overwrite=true mybatis-generator:generate ## 时序图 [登陆模块时序图](/images/descriptionOfSystem/1.jpg) logging.level.koli.chelsea.community.mapper=debug