Giter Site home page Giter Site logo

rmdno1 / ssm-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quan7u/ssm-demo

0.0 1.0 0.0 3.89 MB

基于Spring+SpringMVC+Mybatis+Bootstrap的模仿微博系统 :fire::cyclone::rocket:

License: Apache License 2.0

Java 62.90% CSS 2.01% JavaScript 35.09%

ssm-demo's Introduction

基于ssm的仿微博系统

Build Status version License

项目简介

这是我的第一个ssm项目,做了快有一个半月,本着做一个大作业顺便熟悉框架顺便找实习的小项目....的想法

前端框架用的是Bootstrap

做完也不想就这样扔在一边,就拿上来分享一下吧

整体来说,代码应该是比较乱的,毕竟第一次搭建框架,然后各种补逻辑业务,改数据库设计

文件上传用了百度的插件 WebUploader

消息提醒用的是轮询,公告功能用了websocket

restful是后来接触到的,所以没有加上

深切体会到按需求即学即用,还好至少把功能都实现了哈

运行环境

关系数据库系统:MySQL5.5

JDK版本:1.8

浏览器:Chrome

Maven:apache-maven-3.5.3

Tomcat:apache-tomcat-8.5.30

IDE:Eclipse Neon.3 Release (4.6.3)

快速开始

1 克隆项目到本地
git clone https://github.com/yrucrew/ssm-demo.git
2 在Eclipse中导入项目

File——Import——General——Existing Projects into Workspace

第一次构建项目会比较慢 耐心等会

3 创建数据库 建表

创建数据库 运行sql文件

/weibo/src/main/resources/sql/weibo.sql

修改成你的数据库配置

/weibo/src/main/resources/db.properties

4 在Tomcat中配置虚拟路径

把图片上传到web项目目录外

配置虚拟路径保存上传图片

Tomcat配置

5 (可选)把默认头像放到作为存储上传图片的目录下

/weibo/src/main/resources/img/default.png

这样注册时就会默认选中头像啦(看得比较舒服 你也可以自己配置

6 首次使用

启动Tomcat然后可以发微博啦!!!!

前台http://localhost:8080/weibo/login.action

后台http://localhost:8080/weibo/signin.action 默认admin admin(已写入sql

Ps:你的数据库是没有其他数据的 自行注册吧

示例

登录页

登录页

首页

首页

消息提醒

消息提醒

收到的赞

收到的赞

评论

回复测试

后台

(只做了个公告哈哈,CRUD不想写啊啊啊啊

后台

公告功能

公告功能

ssm-demo's People

Contributors

quan7u avatar

Watchers

James Cloos 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.