{"id":13489461,"url":"https://github.com/codedrinker/community","last_synced_at":"2025-05-15T04:04:39.966Z","repository":{"id":37319259,"uuid":"183041039","full_name":"codedrinker/community","owner":"codedrinker","description":"开源论坛、问答系统，现有功能提问、回复、通知、最新、最热、消除零回复功能。功能持续更新中…… 技术栈 Spring、Spring Boot、MyBatis、MySQL/H2、Bootstrap","archived":false,"fork":false,"pushed_at":"2023-07-07T21:44:58.000Z","size":4671,"stargazers_count":2758,"open_issues_count":23,"forks_count":782,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-04-14T04:59:37.791Z","etag":null,"topics":["bootstrap","flyway","h2-database","mybatis","mybatis-generator","mysql","spring","springboot"],"latest_commit_sha":null,"homepage":"http://www.mawen.co","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codedrinker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-04-23T15:11:24.000Z","updated_at":"2025-04-10T14:55:33.000Z","dependencies_parsed_at":"2024-01-14T04:45:15.023Z","dependency_job_id":"edba3607-b572-420a-a07d-d65003810b18","html_url":"https://github.com/codedrinker/community","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedrinker%2Fcommunity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedrinker%2Fcommunity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedrinker%2Fcommunity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedrinker%2Fcommunity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codedrinker","download_url":"https://codeload.github.com/codedrinker/community/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254270641,"owners_count":22042858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","flyway","h2-database","mybatis","mybatis-generator","mysql","spring","springboot"],"created_at":"2024-07-31T19:00:28.211Z","updated_at":"2025-05-15T04:04:39.918Z","avatar_url":"https://github.com/codedrinker.png","language":"Java","readme":"## 码问\n\n## 在线演示地址\n[https://www.mawen.co](https://www.mawen.co)，任何配置、使用和答疑问题，可以 👉[点击](#联系我) 联系我，也可以拉你进群沟通。\n\n## 功能列表  \n开源论坛、问答系统，现有功能多社交平台登录(Github，Gitee)提问、回复、通知、最新问答、最热热大、消除零回复等功能。\n\n## 当前项目配套的手把手视频教程\n|  标题   |  链接   |\n| --- | --- |\n|  【Spring Boot 实战】论坛项目【第一季】   |  [BV1r4411r7au](https://www.bilibili.com/video/BV1r4411r7au)  |\n|  【Spring Boot 实战】热门话题，经典面试问题实战，TopN 问题【第二季】|  [BV1Z4411f7RK](https://www.bilibili.com/video/BV1Z4411f7RK)  |\n|  【Spring Boot 实战】接入广告流量变现(让你的网站益起来)【第三季】  | [BV1L4411y7J9](https://www.bilibili.com/video/BV1L4411y7J9)  |\n|  【Spring Boot 实战】Vue 零基础入门(前后端分离的前置视频)【第四季】  |   [BV1gE411R7YA](https://www.bilibili.com/video/BV1gE411R7YA) |\n|  【Spring Boot 实战】Java 设计模式实战(加薪的必修课)【第五季】  |   [BV1UK4y1M7PC](https://www.bilibili.com/video/BV1UK4y1M7PC) |\n|  【Spring Boot 实战】快速搭建免费 HTTPS 服务  |   [BV1oJ411K7VT](https://www.bilibili.com/video/BV1oJ411K7VT)  |\n\n## 本地运行手册\n1. 安装必备工具  \nJDK，Maven\n2. 克隆代码到本地\n```sh\ngit clone https://github.com/codedrinker/community.git\n````\n3. 运行数据库脚本，创建本地数据库\n```sh\nmvn flyway:migrate\n```\n如果需要使用 MySQL 数据库，运行脚本前修改两处配置\n```\n# src/main/resources/application.properties \nspring.datasource.url=jdbc:h2:~/community\nspring.datasource.username=sa\nspring.datasource.password=123\n```\n```\n# pom.xml\n\u003cproperties\u003e\n    \u003cdb.url\u003ejdbc:h2:~/community\u003c/db.url\u003e\n    \u003cdb.user\u003esa\u003c/db.user\u003e\n    \u003cdb.password\u003e123\u003c/db.password\u003e\n\u003c/properties\u003e\n```\n4. 运行打包命令，生成可执行 jar 文件\n```sh\nmvn package -DskipTests\n```\n4. 运行项目  \n```sh\njava -jar target/community-0.0.1-SNAPSHOT.jar\n```\n如果是线上部署，可以增加配置文件(production.properties)，同时运行命令修改如下\n```sh\njava -jar -Dspring.profiles.active=production target/community-0.0.1-SNAPSHOT.jar\n```\n5. 访问项目\n```\nhttp://localhost:8887\n```\n\n## 其他\n1. 视频初期未使用 Flyway 之前的数据库脚本\n```sql\nCREATE TABLE USER\n(\n    ID int AUTO_INCREMENT PRIMARY KEY NOT NULL,\n    ACCOUNT_ID VARCHAR(100),\n    NAME VARCHAR(50),\n    TOKEN VARCHAR(36),\n    GMT_CREATE BIGINT,\n    GMT_MODIFIED BIGINT\n);\n```\n2. 生成 Model 等 MyBatis 配置文件的命令\n```\nmvn -Dmybatis.generator.overwrite=true mybatis-generator:generate\n```\n\n\n## 技术栈\n|  技术   |  链接   |\n| --- | --- |\n|  Spring Boot   |  http://projects.spring.io/spring-boot/#quick-start   |\n|   MyBatis  |  https://mybatis.org/mybatis-3/zh/index.html   |\n|   MyBatis Generator  |  http://mybatis.org/generator/   |\n|   H2  |   http://www.h2database.com/html/main.html  |\n|   Flyway  |   https://flywaydb.org/getstarted/firststeps/maven  |\n|Lombok| https://www.projectlombok.org |\n|Bootstrap|https://v3.bootcss.com/getting-started/|\n|Github OAuth|https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/|\n|UFile|https://github.com/ucloud/ufile-sdk-java|\n|Bootstrap|https://v3.bootcss.com/getting-started/|\n\n## 扩展资料\n[Spring 文档](https://spring.io/guides)    \n[Spring Web](https://spring.io/guides/gs/serving-web-content/)   \n[es](https://elasticsearch.cn/explore)    \n[Github deploy key](https://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys)    \n[Bootstrap](https://v3.bootcss.com/getting-started/)    \n[Github OAuth](https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/)    \n[Spring](https://docs.spring.io/spring-boot/docs/2.0.0.RC1/reference/htmlsingle/#boot-features-embedded-database-support)    \n[菜鸟教程](https://www.runoob.com/mysql/mysql-insert-query.html)    \n[Thymeleaf](https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#setting-attribute-values)    \n[Spring Dev Tool](https://docs.spring.io/spring-boot/docs/2.0.0.RC1/reference/htmlsingle/#using-boot-devtools)  \n[Spring MVC](https://docs.spring.io/spring/docs/5.0.3.RELEASE/spring-framework-reference/web.html#mvc-handlermapping-interceptor)  \n[Markdown 插件](http://editor.md.ipandao.com/)   \n[UFfile SDK](https://github.com/ucloud/ufile-sdk-java)  \n[Count(*) VS Count(1)](https://mp.weixin.qq.com/s/Rwpke4BHu7Fz7KOpE2d3Lw)  \n[Git](https://git-scm.com/download)   \n[Visual Paradigm](https://www.visual-paradigm.com)    \n[Flyway](https://flywaydb.org/getstarted/firststeps/maven)  \n[Lombok](https://www.projectlombok.org)    \n[ctotree](https://www.octotree.io/)   \n[Table of content sidebar](https://chrome.google.com/webstore/detail/table-of-contents-sidebar/ohohkfheangmbedkgechjkmbepeikkej)    \n[One Tab](https://chrome.google.com/webstore/detail/chphlpgkkbolifaimnlloiipkdnihall)    \n[Live Reload](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei/related)  \n[Postman](https://chrome.google.com/webstore/detail/coohjcphdfgbiolnekdpbcijmhambjff)\n\n## 更新日志\n- 2019-7-30 修复 session 过期时间很短问题   \n- 2019-8-2 修复因为*和+号产生的搜索异常问题  \n- 2019-8-18 添加首页按照最新、最热、零回复排序  \n- 2019-8-18 修复搜索输入 ? 号出现异常问题\n- 2019-8-22 修复图片大小限制和提问内容为空问题\n- 2019-9-1 添加动态导航栏  \n- 2021-7-5 修复因为网络原因不能拉去到自定义 spring starter 问题\n\n## 联系我\n有任何问题可以扫码下面两个二维码找到我，左边是微信订阅号，关注回复 ‘面试’即可获得我整理的(2W字)阿里面经，右边是个人微信号，有任何技术上面的问题可以给我留言。\n|  微信公众号   |  个人微信   |\n| --- | --- |\n|  码匠笔记  |  fit8295 |\n|  ![](https://mawen-cdn.cn-bj.ufileos.com/wxdyh-qr.jpeg?iopcmd=thumbnail\u0026type=1\u0026scale=50)   |   ![](http://mawen-cdn.cn-bj.ufileos.com/wechat.jpeg?iopcmd=thumbnail\u0026type=1\u0026scale=50)  |\n","funding_links":[],"categories":["实战项目"],"sub_categories":["博客/论团/其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedrinker%2Fcommunity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedrinker%2Fcommunity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedrinker%2Fcommunity/lists"}