GithubHelp home page GithubHelp logo

hhy5277 / roothub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from miansen/roothub

0.0 1.0 0.0 58.16 MB

使用springMVC和MySQL开发的论坛系统

Home Page: https://www.roothub.cn

License: MIT License

Java 62.11% CSS 5.15% JavaScript 32.73%

roothub's Introduction

在线地址:roothub.cn

技术栈

  • JDK1.8
  • SpringMVC
  • MySQL
  • Mybatis
  • Bootstrap
  • jQuery
  • AJAX
  • Redis
  • Nginx

特性

  • 使用SpringMVC开发
  • 分层配置Spring xml
  • 页面自适应布局
  • 使用Redis做缓存
  • 使用Mybatis编写SQL
  • 事务控制
  • 使用logback打印日志

功能

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

快速开始

  1. 克隆项目到本地:https://github.com/miansen/Roothub.git
  2. 创建MySQL数据库roothub,字符集utf8,如果想支持emoji,就要选择utf8mb4字符集。
  3. 将项目下的roothub.sql文件导入到roothub数据库。
  4. 修改项目下的JDBC配置文件jdbc.properties
  5. 开启Redis,如果Redis是默认配置,则不需要更改配置文件。否则要修改项目下的配置文件redis.properties
  6. 将项目部署到Tomcat
  7. 运行Tomcat

到这一步就可以访问了,如果不需要Nginx反代,则跳过下一步。

  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)$
    {
	   
    } 
        
 }

启动后报404的解决方法

修改项目的访问路径

反馈

issues

贡献

欢迎大家提 issues,谢谢!

License

MIT

roothub's People

Contributors

miansen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.