基于javaweb的SpringBoot房产销售系统(java+springboot+mybaits+vue+elementui+mysql)

运行环境

Java≥8、MySQL≥5.7、Node.js≥14

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可

❗没学过node.js的不要搞前后端分离项目

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

111025550706

121025550706

131025550706

141025550706

151025550706

161025550706

171025550706

181025550706

201025550706

211025550706

基于javaweb的SpringBoot房产销售系统(java+springboot+mybaits+vue+elementui+mysql)

项目介绍

基于Springboot+vue的房产销售系统

本系统分为前后台,包含管理员、用户、销售经理三种角色,前台为普通用户登录,后台为管理员、用户、销售经理分别登录。

前台主要功能:首页、房源信息、用户登录、用户注册、用户个人中心、我的收藏等功能;

后台管理员主要功能:首页、个人中心、用户管理、销售经理管理、房源信息管理、房源类型管理、房子户型管理、交易订单管理、预约看房管理、评价管理、我的收藏管理、系统管理等。

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。

2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;

3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 

4.数据库:MySql 5.7/8.0版本均可;

5.是否Maven项目:是;

技术栈

后端:SpringBoot+Mybaits

前端:Vue+elementui

使用说明

项目运行:

  1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件;

  2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令;

  3. 将项目中application.yml配置文件中的数据库配置改为自己的配置;

  4. 运行项目,在浏览器中输入地址:

前台地址:http://localhost:8080/springbootbqv00/front/index.html

后台地址

http://localhost:8080/springbootbqv00/admin/dist/index.html

管理员: abo 密码: abo

用户:用户1 密码: 123456

注意项目文件路径中不能含有中文、空格、特殊字符等,否则图片会上传不成功。

客户管理控制层:

@Controller

@RequestMapping(“/customer”)

public class CustomerController extends AuthorizedController {

@Autowired

private CustomerService customerService;

@RequestMapping(value = “”, method = RequestMethod.GET)

public String customer() {

return “crm/customer”;

@RequestMapping(value = “/find”, method = RequestMethod.POST)

@ResponseBody

public PageInfo find(@RequestBody QueryCustomerVo vo) {

return customerService.find(vo);

@RequestMapping(value = “/findAllCustomerCategory”, method = RequestMethod.POST)

@ResponseBody

public List findAllCustomerCategory() {

return customerService.findAllCustomerCategory();

@RequestMapping(value = “/findAllIndustry”, method = RequestMethod.POST)

@ResponseBody

public List findAllIndustry() {

return customerService.findAllIndustry();

@RequestMapping(value = “/findAllSource”, method = RequestMethod.POST)

@ResponseBody

public List findAllSource() {

return customerService.findAllSource();

@RequestMapping(value = “/add”, method = RequestMethod.POST)

@ResponseBody

public Result add(@RequestBody Customer customer) {

customer.setCreateBy(getUser().getUserId());

return customerService.insert(customer);

@RequestMapping(value = “/checkCustomerName”, method = RequestMethod.POST)

@ResponseBody

public Result checkCustomerName(@RequestBody Customer customer) {

return customerService.checkCustomerName(customer);

@RequestMapping(value = “/findById”, method = RequestMethod.POST)

@ResponseBody

public Customer findById(@RequestBody Customer customer) {

return customerService.findById(customer.getCustomerId());

@RequestMapping(value = “/update”, method = RequestMethod.POST)

@ResponseBody

public Result update(@RequestBody Customer customer) {

return customerService.update(customer);

@RequestMapping(value = “/dashboard/{customerId}”, method = RequestMethod.GET)

public ModelAndView dashboard(@PathVariable int customerId) {

ModelAndView vm = new ModelAndView(“crm/customerDashboard”);

vm.addObject(“customerId”, customerId);

return vm;

@RequestMapping(value = “/updateStar”, method = RequestMethod.POST)

@ResponseBody

public Result updateStar(@RequestBody Customer customer) {

return customerService.updateStar(customer);

@RequestMapping(value = “/updateLocation”, method = RequestMethod.POST)

@ResponseBody

public Result updateLocation(@RequestBody Customer customer) {

return customerService.updateLocation(customer);

用户管理控制层:

@Controller

@RequestMapping(“/user”)

public class UserController extends AuthorizedController {

@Autowired

private UserService userService;

@Autowired

private HttpSession session;

@RequestMapping(value = “”, method = RequestMethod.GET)

public String index() {

return “sys/user”;

@RequestMapping(value = “/find”, method = RequestMethod.POST)

@ResponseBody

public PageInfo find(@RequestBody QueryUserVo vo) {

return userService.find(vo);

@RequestMapping(value = “/add”, method = RequestMethod.POST)

@ResponseBody

public Result add(@RequestBody User user) {

return userService.insert(user);

@RequestMapping(value = “/remove”, method = RequestMethod.POST)

@ResponseBody

public Result delete(@RequestBody List ids) {

return userService.deleteByIds(ids);

@RequestMapping(value = “/findById”, method = RequestMethod.POST)

@ResponseBody

public User findById(@RequestBody User user) {

return userService.findById(user.getUserId());

@RequestMapping(value = “/update”, method = RequestMethod.POST)

@ResponseBody

public Result update(@RequestBody User user) {

Result result = userService.update(user);

if (result.isSuccess() && user.getUserId() == getUser().getUserId()) {

session.setAttribute(“User”, userService.findById(getUser().getUserId()));

return result;

@RequestMapping(value = “/updateStatus”, method = RequestMethod.POST)

@ResponseBody

public Result updateStatus(@RequestBody User user) {

return userService.updateStatus(user);

@RequestMapping(value = “/checkUserName”, method = RequestMethod.POST)

@ResponseBody

public Result checkUserName(@RequestBody User user) {

return userService.checkUserName(user);

@RequestMapping(value = “/resetPassword”, method = RequestMethod.POST)

@ResponseBody

public Result resetPassword(@RequestBody User user) {

return userService.resetPassword(user);

@RequestMapping(value = “/profile”, method = RequestMethod.GET)

public String profile() {

return “sys/profile”;

@RequestMapping(value = “/updatePassword”, method = RequestMethod.POST)

@ResponseBody

public Result updatePassword(@RequestBody UpdatePasswordVo vo) {

return userService.updatePassword(vo);

角色管理控制层:

@Controller

@RequestMapping(“/role”)

public class RoleController extends AuthorizedController {

@Autowired

private RoleService roleService;

@RequestMapping(value = “”, method = RequestMethod.GET)

public String index() {

return “sys/role”;

@RequestMapping(value = “/findAll”, method = RequestMethod.POST)

@ResponseBody

public List findAll() {

return roleService.findAll();

@RequestMapping(value = “/checkRoleName”, method = RequestMethod.POST)

@ResponseBody

public Result existRoleName(@RequestBody Role role) {

return roleService.checkRoleName(role);

@RequestMapping(value = “/add”, method = RequestMethod.POST)

@ResponseBody

public Result add(@RequestBody Role role) {

return roleService.insert(role);

@RequestMapping(value = “/remove”, method = RequestMethod.POST)

@ResponseBody

public Result delete(@RequestBody List ids) {

return roleService.deleteByIds(ids);

@RequestMapping(value = “/findById”, method = RequestMethod.POST)

@ResponseBody

public Role findById(@RequestBody Role role) {

return roleService.findById(role.getRoleId());

@RequestMapping(value = “/update”, method = RequestMethod.POST)

@ResponseBody

public Result update(@RequestBody Role role) {

return roleService.update(role);

@RequestMapping(value = “/user/{roleId}”, method = RequestMethod.GET)

public ModelAndView roleUser(@PathVariable int roleId) {

ModelAndView vm = new ModelAndView(“sys/roleUser”);

vm.addObject(“roleId”, roleId);

return vm;

@RequestMapping(value = “/user/findUserInRole”, method = RequestMethod.POST)

@ResponseBody

public PageInfo findUserInRole(@RequestBody QueryRoleUserVo vo) {

return roleService.findUserInRole(vo);

@RequestMapping(value = “/user/remove”, method = RequestMethod.POST)

@ResponseBody

public Result deleteRoleUser(@RequestBody RoleUser roleUser) {

return roleService.deleteRoleUser(roleUser);

@RequestMapping(value = “/user/findUserNotInRole”, method = RequestMethod.POST)

@ResponseBody

public PageInfo findUserNotInRole(@RequestBody QueryRoleUserVo vo) {

return roleService.findUserNotInRole(vo);

@RequestMapping(value = “/user/add”, method = RequestMethod.POST)

@ResponseBody

public Result addRoleUser(@RequestBody RoleUser roleUser) {

return roleService.insertRoleUser(roleUser);

@RequestMapping(value = “/menu/{roleId}”, method = RequestMethod.GET)

public ModelAndView roleMenu(@PathVariable Integer roleId) {

ModelAndView mv = new ModelAndView(“sys/roleMenu”);

mv.addObject(“roleId”, roleId);

return mv;

@RequestMapping(value = “/menu/saveMenu”, method = RequestMethod.POST)

@ResponseBody

public Result saveMenu(@RequestBody Map map) {

return roleService.saveRoleMenu((Integer) map.get(“roleId”), (List) map.get(“menuIdList”));

@RequestMapping(value = “/fun/{roleId}”, method = RequestMethod.GET)

public ModelAndView roleFun(@PathVariable int roleId) {

ModelAndView vm = new ModelAndView(“sys/roleFun”);

vm.addObject(“roleId”, roleId);

return vm;


项目链接:
https://javayms.github.io?id=481125130706201ra
https://javayms.pages.dev?id=481125130706201ra