Skip to content

miansen/Roothub

v2.6
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 8 commits ahead, 198 commits behind master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

在线地址:https://www.roothub.cn

登录后台帐号:admin,密码:123

技术栈

  • JDK1.8
  • Spring4.1
  • SpringMVC
  • Mybatis
  • MySQL
  • JSP
  • Bootstrap
  • jQuery
  • AJAX
  • Redis
  • Nginx
  • Shiro

特性

  • 使用 SpringMVC 开发,经典 MVC 三层架构
  • 分层配置 Spring xml
  • 页面自适应布局
  • 使用 Redis 做缓存
  • 使用 Mybatis 编写 SQL,自由度高
  • 事务控制
  • 使用 logback 打印日志
  • 使用 Shiro 做权限控制
  • 后台管理配置灵活

功能

  • 登录注册
  • 发帖
  • 回复
  • 通知
  • 搜索
  • 标签
  • 个人设置
  • 关注
  • 收藏
  • 分享
  • 积分
  • 赞、踩
  • 后台管理

快速开始

准备环境

  1. JDK1.8(必须)
  2. MySQL5.7.x(必须)
  3. Redis3.2.x(非必须)
  4. Nginx1.6.x(非必须)

开发人员搭建

  1. 克隆项目到本地:https://github.com/miansen/Roothub.git
  2. 使用你熟悉的开发工具打开,如 IDEA 或者 Eclipse
  3. 创建 MySQL 数据库roothub,字符集 utf8,如果想支持 emoji,就要选择 utf8mb4 字符集。
  4. 将项目下的src/main/sql/roothub.sql文件导入到 roothub 数据库。
  5. 修改 JDBC 配置文件src/main/resources/jdbc.properties,帐号密码换成你自己的
  6. 如果你开启了 Redis,就要修改 Redis 的配置文件src/main/resources/redis.properties
  7. 将项目部署到 Tomcat
  8. 运行 Tomcat

到这一步就可以访问了,如果启动后报404,则需要修改项目的访问路径

  1. Nginx 反代(非必须,不需要可以跳过),下面是 conf 的参考配置,开启 Nginx 后访问:http://localhost
server {
	#监听的端口和IP
    listen       80;
    server_name  localhost;

	#这里换成你本地的路径
	root F:/Tomcat/apache-tomcat-8.5.16/wtpwebapps/roothub;

	#动态请求交给Tomcat处理

    location / {

	#这里换成Tomcat的端口

	proxy_pass http://127.0.0.1:8080/;
    }
	
	#所有静态文件由Nginx直接获取
    location ~ .*.(htm|html|gif|jpg|jpeg|png|bmp|swf|ico|rar|zip|txt|flv|mid|doc|ppt|pdf|xls|mp3|wma)$
    {
    	
    }
    location ~ .*.(js|css)$
    {
	   
    } 
        
 }

反馈

issues

贡献

欢迎大家提 issues,谢谢!

License

MIT