分享一個自己在學校學習開發的一個系統程式,麻雀雖小,五臟俱全,本系統是基于ssm(Spring+SpringMVC+MyBatis)開發的房屋管理系統
系統分管理員和租客兩大用戶型別,不同型別具有不同功能,
功能介紹 房源資訊模塊: 房源資訊展示、房源資訊更新、房源資訊增加、房源資訊洗掉
賬戶管理模塊: 賬戶登錄、賬戶系結、賬戶管理
租金結算模塊: 每月租金資訊、租金交付功能、月租金收入總額統計
房屋租賃合同管理模塊: 房屋租賃合同錄入、房屋租賃合同展示、房屋租賃價格修改、房屋租賃合同終止
報障模塊: 租客報賬、管理員報障審核、租客報障統計
日程模塊:查看日程、添加日程
更多的功能請看下面專案運行截圖
運行環境:
專案開發語言:Java語言
專案開發工具:eclipse等
專案開發技術:ssm
服務器軟體:tomcat7.0或者以上
資料庫型別:MySQL資料庫為系統的資料庫
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> <!-- 掃描帶Controller注解的類 --> <context:component-scan base-package="controller" /> <!-- 加載注解驅動 --> <mvc:annotation-driven/> <!-- 配置視圖決議器 作用:在controller中指定頁面路徑的時候就不用寫頁面的完整路徑名稱了,可以直接寫頁面去掉擴展名的名稱 --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <!-- 真正的頁面路徑 = 前綴 + 去掉后綴名的頁面名稱 + 后綴 --> <!-- 前綴 --> <property name="prefix" value="https://www.cnblogs.com/WEB-INF/jsp/"></property> <!-- 后綴 --> <property name="suffix" value="https://www.cnblogs.com/myzczx/p/.jsp"></property> </bean> <!-- 配置自定義轉換器 注意: 一定要將自定義的轉換器配置到注解驅動上 --> <!-- 檔案上傳 --> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <!-- 設定上傳檔案的最大尺寸為5MB --> <property name="maxUploadSize"> <value>5242880</value> </property> </bean> </beans>
@Controller
public class UserController {
@Autowired
private UserService userService;
@RequestMapping("/login")
public String userList() throws Exception{
return "login";
}
@RequestMapping("/logincheck")
public String login(User user,Model model,HttpSession httpSession) throws Exception{
User user1=userService.login(user);
if(user1!=null){
httpSession.setAttribute("user", user1);
if(user1.getType().equals("zuke")){
return "zuke/main";
}
else{
return "admin/main1";
}
}else{
String error="error";
model.addAttribute("error", error);
return "login";
}
}
@RequestMapping("/toindex")
public String toindex(Model model) throws Exception{
return "admin/index";
}
}
原始碼地址:http://www.myzshare.cn/resource_detail?id=123&res_name=%E5%9F%BA%E4%BA%8Essm%E5%BC%80%E5%8F%91%E7%9A%84%E6%88%BF%E5%B1%8B%E7%A7%9F%E8%B5%81%E7%B3%BB%E7%BB%9F





轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/245516.html
標籤:Java
