个人名片
🔥 源码获取 | 毕设定制| 商务合作:《个人名片》
⛺️心若有所向往,何惧道阻且长
运行环境
Java≥8、MySQL≥5.7
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
4.数据库:MySql 5.7版本;
技术栈
后端:SpringBoot
前端:html+layui+bootstrap+jQuery
适用
课程设计,大作业,毕设,项目练习,学习演示等
功能说明
使用说明
运行项目,输入localhost:8087/travel 登录 5. 后台管理员账户:admin 密码:admin
前台普通用户账户:user 密码:123456
List<UserStrategy>userstrategylist = strategyService.getTravelstrategyByUser(request);List<Travelstrategy>top10strategy = strategyService.findTop10strategy();
model.addAttribute("top10strategy",topl0strategy);
model.addAttribute("userStrategylist",userstrategylist);
return "strategy/strategy-manage";
}
@RequestMapping("/saveTravelstrategy")
@ResponseBody
public Result saveTravelStrategy(HttpservletRequest request, Travelstrategy travelstrategy){return strategyService.saveTravelstrategy(request, travelStrategy);
}
@RequestMapping("/pushstrategyListUI"public String pushstrategylistUI(HttpservletRequest request, Model model, (Modelttribute("searchame") string searchame, ePageableefauit(size = 10)Page<Travelstrategy>page = strategyService.PushstrategyListUI(request,searchName, pageable);List<Travelstrategy>topl0strategy = strategyservice.findTopl0strategy();
model.addAttribute("top10strategy",topl0strategy);
model.addAttribute("page",page);
return "strategy/pushstrategy";
}
}
package hue.edu.xiong.volunteer travel.service;
e5ervice
public class Loginservice f
@Autowired
private UserRepository userRepository;
public Result login(User user, HttpservletResponse response){
eController
eRequestMapping("/reserve")
public class ReserveController
@Autowired
private ReserveService reserveservice;
@RequestMapping("/reserveHotelListUI")
public String reserveHotellistUI(Model model, eModelAttribute("searchame") String searchName, @PageableDefault(size = 10) Pageable pageable) {Page<Hotel> page = reserveservice.reserveHotelListUI(searchName, pageable);
List<Hotel> top10Hotel = reserveservice.getTopl0Hotel();
List<Attractions>top10Attractions = reserveService.getTop10Attractions();
model.addAttribute("topl0Hotel",top10Hotel);
model.addAttribute("top10Attractions",topl0Attractions);
model.addAttribute("page",page);
return "reserve/reserve-hotel";
}
@RequestMapping("/hotelDetailsUI")public String hotelDetailsUI(Model model, HttpservletRequest request, @RequestParam(name = "id") string id) {Hotel hotel = reserveservice.findHotelById(id);
//如果用户显示已经预约,就是查看预约列表
Boolean flag =reserveservice.isReserveHotel(request, id);
List<Hotel> topl@Hotel = reserveservice.getTopl0Hotel();
List<Attractions>top10Attractions = reserveService.getTopl0Attractions();
model.addAttribute("toplHotel",topl0Hotel);
model.addAttribute("topl0Attractions",topl0Attractions);
model.addAttribute("hotel",hotel);
model.addAttribute("flag",flag);
return "reserve/reserve-hotel-details";
}
@RequestMapping("/reserveManageUI")
ListcHotel> topl@Hotel = reserveservice.getToplgHotel();
List<Attractions>toplAttractions = reserveservice.getTop1eAttractions();
model.addAttribute("topleHotel",topleHotel);
model.addAttribute("topleAttractions",topleAttractions);
model.addAttribute("hotel", hotel);
model.addAttribute("flag",flag);
return "reserve/reserve-hotel-details":
}
@RequestMapping("/reserveManageUI"
public string reserveManageuI(Model model, HttpservletReguest request){
List<UserHotel>userHotelList reserveservice.getReserveHotelByUser(request);List<UserAttractions> userAttractionslist = reserveservice.getReserveAttractionsByuser(request);
model.addAttribute("userHotelList",userHotelList);
model.addAttribute("userAttractionsList",userAttractionsList);
return "reserve/reserve-user-manage"j
}
@RequestMapping("/cancelReserve")@ResponseBody
public Result cancelReserve(HttpservletRequest request,string id){
return reserveservice.cancelReserve(request,id);
@RequestMapping("/reserveAttractionsListuI"public string reserveAttractionsListuI(Model model, @modelAttribute("searchame") string searchame, @Pageableefauit(size = 10) Pageable pageable) {PagexAttractions>page= reserveservice.reserveAttractionsListUI(searchName,pageable);
ListcHotel> toplaHotel = reserveservice.getTopl@Hotel();
List<Attractions>toplAttractions = reserveservice.getTop1eAttractions();
model.addAttribute("top1eHotel",toplBHote1):
model.addAttribute("topleAttractions",topleAttractions);
model.addAttribute("page",page);
return "reserve/reserve-attractions";
}
aRequestMapping("/attractionspetailsUI"
public string attractionsDetailsUI(Model model, HttpservletRequest reguest, @RequestParam(name = "id") string id) f
Attractions attractions = reserveservice,findAttractionsById(id);
//如果用户显示已经预约,就是查看预约列表
Boolean flag = reserveservice.isReserveAttractions(request, id);
ListcHotel> toplHotel = reserveservice.getTopleHotel();
List<Attractions>topleAttractions = reserveservice.getrop1eAttractions();
wodel.addAttribute("top1eHotel",toplgHotel):
model.addAttribute("topleAttractions",topleAttractions);
model.addAttribute("attractions",attractions);
model.addAttribute("flag",flag);
}
return "reserve/reserve-attractions-details";
aRequestMapping("/cancelAttractionsReserve")