All Projects → zhaohongxuan → Hellossm

zhaohongxuan / Hellossm

Licence: apache-2.0
简单的Spring+SpringMVC+Mybatis+vuejs+webpack的整合项目的源码

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Hellossm

Perfect Ssm
🍇更完善的Spring+SpringMVC+Mybatis+easyUI后台管理系统(RESTful API+redis)
Stars: ✭ 606 (+455.96%)
Mutual labels:  mybatis, spring-mvc
Autumn
Autumn-Blog and Autumn-CMS
Stars: ✭ 101 (-7.34%)
Mutual labels:  mybatis, spring-mvc
Ssm Bookappointment
优雅整合SSM框架:SpringMVC + Spring + MyBatis(用户登陆式图书预约系统)
Stars: ✭ 666 (+511.01%)
Mutual labels:  mybatis, spring-mvc
Java Sourcecode Blogs
Java源码分析 【源码笔记】专注于Java后端系列框架的源码分析,每周持续推出Java后端系列框架的源码分析文章。
Stars: ✭ 448 (+311.01%)
Mutual labels:  mybatis, spring-mvc
Eshop Soa
EShop基于Dubbo实现SOA服务化拆分,并基于RocketMQ解决了分布式事务(新版SpringBootSOASkeleton)
Stars: ✭ 65 (-40.37%)
Mutual labels:  mybatis, spring-mvc
S Mall Ssm
小小商城系统,JavaWEB项目,基于SSM,仿天猫页面,功能齐全,实现了自动处理关联查询的通用Mapper、抽象 BaseService 类、注解鉴权、参数注解校验等
Stars: ✭ 456 (+318.35%)
Mutual labels:  mybatis, spring-mvc
Springbootunity
rabbitmq、redis、scheduled、socket、mongodb、Swagger2、spring data jpa、Thymeleaf、freemarker etc. (muti module spring boot project) (with spring boot framework,different bussiness scence with different technology。)
Stars: ✭ 845 (+675.23%)
Mutual labels:  mybatis, spring-mvc
Highdsa
2018年本科毕设项目,已更新所有开发和部署文档。基于Dubbo、SSM、Shiro、ELK、ActiveMQ、Redis等实现的一套高可用、高性能、高可扩展的分布式系统架构,实现可支持业务的基础公共服务,API使用Restful风格对外暴露。已经实现的包括:发送邮件服务、FastDFS文件存储服务、ELK实时日志查询服务、Redis缓存服务、Mybatis数据库、阿里短信推送、Goeasy消息推送、Druid监控、ActiveMQ消息队列、shiro权限认证、cas单点登录、权限配置web系统、移动端后台系统。持续更新中......
Stars: ✭ 385 (+253.21%)
Mutual labels:  mybatis, spring-mvc
Psychological Counseling System
简易心理咨询预约系统Based On SSM
Stars: ✭ 49 (-55.05%)
Mutual labels:  mybatis, spring-mvc
Ssm Demo
⚡️利用 maven 来构建一个多模块基于 SpringMVC + Spring + MyBatis 三大框架的脚手架,为 Java 初学者了解多模块的 maven 工程做个参考
Stars: ✭ 45 (-58.72%)
Mutual labels:  mybatis, spring-mvc
Watchdog Framework
🍻 「停止维护」基于SpringBoot+Shiro+Mybatis等开发的轻量级管理系统快速开发脚手架
Stars: ✭ 421 (+286.24%)
Mutual labels:  mybatis, spring-mvc
Spider
基于SSM的爬虫系统,Spring+Spring MVC+MyBatis+Druid+Redis+MQ
Stars: ✭ 78 (-28.44%)
Mutual labels:  mybatis, spring-mvc
Shopping Management System
该项目为多个小项目的集合(持续更新中...)。内容类似淘宝、京东等网购管理系统以及图书管理、超市管理等系统。目的在于便于Java初级爱好者在学习完某一部分Java知识后有一个合适的项目锻炼、运用所学知识,完善知识体系。适用人群:Java基础到入门的爱好者。
Stars: ✭ 4,130 (+3688.99%)
Mutual labels:  mybatis, spring-mvc
Bugcatcher
方便产品、开发、测试三方协同管理、测试、监控项目进度和质量,以持续交付。
Stars: ✭ 472 (+333.03%)
Mutual labels:  mybatis, spring-mvc
Voj
A cross-platform online judge system based on Spring MVC framework and ActiveMQ.
Stars: ✭ 385 (+253.21%)
Mutual labels:  mybatis, spring-mvc
Flyapi
基于SSM layui 开发的多人博客系统,目标在于让每个人都能精准阅读和专注写作。
Stars: ✭ 16 (-85.32%)
Mutual labels:  mybatis, spring-mvc
Quick4j
Use quick4j build simple,fast,ahead and flexible JVM-based systems and applications.
Stars: ✭ 358 (+228.44%)
Mutual labels:  mybatis, spring-mvc
Webbf
Java Web工程demo 后端:spring + spring mvc + mybatis + maven,涉及定时任务quartz、ehcache缓存、RESTful API、邮件发送... 前端:react + reflux + webpack,涉及ES6、jquery、react-router、ant design等内容, 提供下思路,仅供参考。
Stars: ✭ 367 (+236.7%)
Mutual labels:  mybatis, spring-mvc
V5cmsjava
Spring+SpringMVC+Spring Data JPA+FreeMarker+Bootstarp(master分支),mybatis分支ORM使用的是MyBatis。
Stars: ✭ 29 (-73.39%)
Mutual labels:  mybatis, spring-mvc
Mybatis Spring Boot Jpetstore
A sample web application built on MyBatis 3, Spring Boot and Thymeleaf 3.
Stars: ✭ 75 (-31.19%)
Mutual labels:  mybatis, spring-mvc

Build Status

使用Spring +Spring MVC +Mybatis 构建的简单的框架的Demo,前端界面使用vue.js+bulma,后台使用Spring MVC Restful控制器实现前后端分离。 使用webpack打包实现前端资源的部署 具体介绍页面请点击 使用Maven搭建Spring+SpringMVC+Mybatis+ehcache项目 文章可能已经过去很久了,和目前的代码稍微有点出入,主要是前端代码的变化。

主要功能

  1. 实现Spring、SpringMVC、Mybatis三个框架的整合
  2. 使用ehcache缓存
  3. vue.js的简单使用
  4. Maven Profile的使用,方面环境切换
  5. Mybatis Generator的使用

一、配置开发环境

配置好以下开发工具

JDK: 1.7
Maven:3.1.1
Tomcat:7.0.65
Mysql:5.5.20
vue.js: V1.0.26

Fork项目Clone到本地

二.创建数据库表

1.本地安装好mysql数据库,使用自带的test数据库,或者新建数据库

jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3307/test
jdbc.username=root
jdbc.password=root

2.在数据库中创建表

  CREATE TABLE `user` (  
  `id` int(11) NOT NULL AUTO_INCREMENT,  
  `user_name` varchar(40) NOT NULL,  
  `password` varchar(255) NOT NULL,  
  PRIMARY KEY (`id`)  
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;  

insert  into `user`(`user_name`,`password`) values ('赵宏轩','123456');  
insert  into `user`(`user_name`,`password`) values ('赵小轩','123456');  

三.添加tomcat服务器并部署war包

1.File-Project Structure点击Artifacts一栏

点击+,选择Web-Application-Exploded然后选择from maven选中本项目 Web Application Exploded是没有压缩的war包,相当于文件夹 Web Application Achieved是压缩后的war包

2.生成war包

依次执行maven Lifecyle的clean->compile->package命令 maven会在target目录生成war包

Tips:

maven的设置选项 use Maven Output Directories 要勾选上

3.配置Tomcat

  1. 点击Run-Run Configurations
  2. 点击+选择tomcat server->local
  3. 点击Configure 配置好Tomcat的解压目录,端口号8082
  4. 点击Deployment选项卡,点击+号,选择一个artifact,就是第二部的war包,Application Context 配置为HelloSSM
  5. 点击 Tomcat的右边的运行按钮,运行tomcat

四.访问Rest接口

使用Spring的RestTemplate来进行测试 直接在RestFulClientTest类上点击Junit的按钮进行接口测试

五、前端

  1. 首先要确保你的电脑上安装了npm进入前端资源文件夹 假如现在的目录就在HelloSSM的目录下面,则需要 cd src/main/webapp/frontend 进入到前端资源的文件夹下面,然后npm install 安装依赖
  2. 然后执行命令 npm run dev 前端资源就会部署起来了,运行在8080端口

六、页面管理

在任务栏输入http://localhost:8080/,回车出现用户管理的简单页面,一个简单的SSM+vuejs 前后端分离的项目环境就搭建好了。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].