Java project: design and implementation of Aiyou travel platform (java+springboot+ssm)

Project significance:


Since the reform and opening up, China's tourism has developed rapidly, but comparatively speaking, the breadth and depth of China's tourism development are far from meeting the needs of economic development and the improvement of people's living standards. With the development of market economy and the further improvement of people's income level, people's demand for tourism consumption will further rise. At present, tourism plays a more and more important role in the national economy. However, the foundation of China's tourism industry is still weak, the management means are lagging behind, the degree of informatization is low, and the efficiency of enterprises is poor; The management mode of tourism administration department is backward and lacks information management means. In the face of difficulties and challenges, China's tourism industry must change ideas, innovate thinking, take information construction as a breakthrough and new means, and integrate various resources, so as to realize the new leap of the whole industry.

Project significance:
 

The front desk + background information system of Aiyou travel platform designed and implemented in this paper can change the traditional business model of tourism enterprises, improve the work efficiency and management level of management departments at all levels, reduce work costs, strengthen publicity and improve the effectiveness of information; It can meet the personalized needs of tourists and improve the quality of tourism service. The networking of tourism management will further expand the tourism pillar industry, improve the overall informatization level of the tourism industry, optimize the industrial structure and resource allocation, improve the industrial chain, drive the development of many related industries, stimulate domestic demand, expand employment, and play a positive role in promoting economic development, so as to improve the quality of the whole tourism industry
 

Main technologies: spring, springmvc, springboot, md5, mybatis, jquery, layui,, bootstart JS tomcat, rich text compiler, interceptor, etc

Main functions: website home page display, user login, user registration, tourism routes, pay attention to routes, tourism strategy, hotel reservation, tourism strategy published by me, scenic spot reservation, keyword search for hotel and scenic spot information and other main functions:

Main functions:

Front page of the system:

View some basic information and function operations on the home page, such as tourism routes, tourism strategies, hotel reservations, fuzzy search and personal information

User login and registration:

Tourism route related modules:

Click to view all travel strategies and strategies I pay attention to, search strategies according to keywords, publish strategy information, but it can be displayed only after being approved by the administrator, etc

Insert partial code display:

package hue.edu.xiong.volunteer_travel.controller;
 
import hue.edu.xiong.volunteer_travel.core.Result;
import hue.edu.xiong.volunteer_travel.core.ResultGenerator;
import hue.edu.xiong.volunteer_travel.model.*;
import hue.edu.xiong.volunteer_travel.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
 
@Controller
@RequestMapping("/system")
public class SystemController {
    @Autowired
    private SystemService systemService;
 
 
    @RequestMapping("")
    public String loginUI() {
        return "system/login/login";
    }
 
    @RequestMapping("/login")
    @ResponseBody
    public Result login(SysUser sysUser, HttpServletResponse response) {
 
       return systemService.login(sysUser,response);
    }
    @RequestMapping("/userListUI")
    public String userListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {
        Page<User> page = systemService.getUserPage(pageable);
        model.addAttribute("page",page);
        return "system/user/list";
    }
 
    @RequestMapping("/saveUser")
    @ResponseBody
    public Result saveUser(User user) {
        return systemService.saveUser(user);
    }
 
    @RequestMapping("/getUserById")
    @ResponseBody
    public Result getUserById(String id) {
        return ResultGenerator.genSuccessResult(systemService.getUserById(id));
    }
 
 
 
    @RequestMapping("/logout")
    public String logout(HttpServletRequest request, HttpServletResponse response) {
       systemService.logout(request,response);
        return "redirect:/system";
    }
 
    @RequestMapping("/hotelListUI")
    public String hotelListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {
        Page<Hotel> page = systemService.getHotelPage(pageable);
        model.addAttribute("page", page);
        return "system/hotel/list";
    }
 
    @RequestMapping("/saveHotel")
    @ResponseBody
    public Result saveHotel(Hotel hotel) {
        return systemService.saveHotel(hotel);
    }
 
    @RequestMapping("/updateStatus")
    @ResponseBody
    public Result updateStatus(String id) {
        return systemService.updateStatus(id);
    }
 
    @RequestMapping("/getHotelById")
    @ResponseBody
    public Result getHotelById(String id) {
        return ResultGenerator.genSuccessResult(systemService.getHotelById(id));
    }
 
    @RequestMapping("/attractionsListUI")
    public String attractionsListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {
        Page<Attractions> page = systemService.getAttractionsPage(pageable);
        model.addAttribute("page", page);
        return "system/attractions/list";
    }
 
    @RequestMapping("/getAttractionsById")
    @ResponseBody
    public Result getAttractionsById(String id) {
        return ResultGenerator.genSuccessResult(systemService.getAttractionsById(id));
    }
 
    @RequestMapping("/updateAttractionsStatus")
    @ResponseBody
    public Result updateAttractionsStatus(String id) {
        return systemService.updateAttractionsStatus(id);
    }
 
    @RequestMapping("/saveAttractions")
    @ResponseBody
    public Result saveAttractions(Attractions attractions) {
        return systemService.saveAttractions(attractions);
    }
 
    @RequestMapping("/travelRouteListUI")
    public String travelRouteListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {
        Page<TravelRoute> page = systemService.getTravelRoutePage(pageable);
        model.addAttribute("page", page);
        return "system/route/list";
    }
 
    @RequestMapping("/getTravelRouteById")
    @ResponseBody
    public Result getTravelRouteById(String id) {
        return ResultGenerator.genSuccessResult(systemService.getTravelRouteById(id));
    }
 
    @RequestMapping("/updateTravelRouteStatus")
    @ResponseBody
    public Result updateTravelRouteStatus(String id) {
        return systemService.updateTravelRouteStatus(id);
    }
 
    @RequestMapping("/saveTravelRoute")
    @ResponseBody
    public Result saveTravelRoute(TravelRoute travelRoute) {
        return systemService.saveTravelRoute(travelRoute);
    }
 
    @RequestMapping("/travelStrategyListUI")
    public String travelStrategyListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {
        Page<TravelStrategy> page = systemService.getTravelStrategyPage(pageable);
        model.addAttribute("page", page);
        return "system/strategy/list";
    }
 
    @RequestMapping("/getTravelStrategyById")
    @ResponseBody
    public Result getTravelStrategyById(String id) {
        return ResultGenerator.genSuccessResult(systemService.getTravelStrategyById(id));
    }
 
    @RequestMapping("/updateTravelStrategyStatus")
    @ResponseBody
    public Result updateTravelStrategyStatus(String id) {
        return systemService.updateTravelStrategyStatus(id);
    }
 
    @RequestMapping("/saveTravelStrategy")
    @ResponseBody
    public Result saveTravelStrategy(HttpServletRequest request,TravelStrategy travelStrategy) {
        return systemService.saveTravelStrategy(request,travelStrategy);
    }
}

Hotel and attraction reservations:

After logging in, users can view and book hotel information and scenic spot information

Hotel and attraction details:

Tourism strategy related modules:

Click to view all travel routes and routes I pay attention to, and search routes according to keywords

Collection, attention and Reservation:

For hotels, routes and scenic spots, users can collect travel strategies, pay attention to scenic spots and book hotels

Background management module:

The background management module mainly includes the maintenance and management of some basic data, including user management, hotel information management, scenic spot information management, strategy information management, route information management, release power audit, login and exit, etc

User release strategy review:

Main data sheet design:

Hotel schedule:

CREATE TABLE `NewTable` (
`id`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
`image`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
`hotel_name`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
`hotel_address`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
`hotel_describe`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
`hotel_status`  int(2) NULL DEFAULT 0 ,
`create_date`  datetime NOT NULL ,
PRIMARY KEY (`id`)
)
ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=COMPACT
;
 

List of scenic spots:

CREATE TABLE `NewTable` (
`id`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
`image`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
`attractions_name`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
`attractions_address`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
`attractions_describe`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,
`attractions_status`  int(2) NULL DEFAULT 0 ,
`create_date`  datetime NOT NULL ,
PRIMARY KEY (`id`)
)
ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=COMPACT
;
 

For details, you can chat privately. Thank you for your support and help!

Click to view more java boutique projects > > >

Keywords: Java MySQL Mybatis Spring Spring Boot

Added by conquest on Sun, 23 Jan 2022 09:39:00 +0200