Boot-crm管理系統開發教程(一)

ps:上週就把這個項目寫完了,一直忘記記錄,如今補上。前端

    Boot-crm是書上第十八章的內容,書上提供了前端的代碼,因此只須要寫後端的代碼就能夠了,①因此咱們先把前端的代碼移植到項目中。java

   ②而後在lib目錄下導入相應的jar包(一共35個jar包)
web


  ③設計數據庫,書上寫了三個表(客戶表,管理員表,字典表),這裏將sql語句粘貼在這裏sql

  
/*
SQLyog Ultimate v8.32 
MySQL - 5.5.40 : Database - boot_crm
*********************************************************************
*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`boot_crm` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `boot_crm`;

/*Table structure for table `base_dict` */

DROP TABLE IF EXISTS `base_dict`;

CREATE TABLE `base_dict` (
  `dict_id` varchar(32) NOT NULL COMMENT '數據字典id(主鍵)',
  `dict_type_code` varchar(10) NOT NULL COMMENT '數據字典類別代碼',
  `dict_type_name` varchar(50) NOT NULL COMMENT '數據字典類別名稱',
  `dict_item_name` varchar(50) NOT NULL COMMENT '數據字典項目名稱',
  `dict_item_code` varchar(10) DEFAULT NULL COMMENT '數據字典項目代碼(可爲空)',
  `dict_sort` int(10) DEFAULT NULL COMMENT '排序字段',
  `dict_enable` char(1) NOT NULL COMMENT '1:使用 0:停用',
  `dict_memo` varchar(100) DEFAULT NULL COMMENT '備註',
  PRIMARY KEY (`dict_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `base_dict` */

insert  into `base_dict`(`dict_id`,`dict_type_code`,`dict_type_name`,`dict_item_name`,`dict_item_code`,`dict_sort`,`dict_enable`,`dict_memo`) values ('1','001','客戶行業','教育培訓 ',NULL,1,'1',NULL),('10','003','公司性質','民企',NULL,3,'1',NULL),('12','004','年營業額','1-10萬',NULL,1,'1',NULL),('13','004','年營業額','10-20萬',NULL,2,'1',NULL),('14','004','年營業額','20-50萬',NULL,3,'1',NULL),('15','004','年營業額','50-100萬',NULL,4,'1',NULL),('16','004','年營業額','100-500萬',NULL,5,'1',NULL),('17','004','年營業額','500-1000萬',NULL,6,'1',NULL),('18','005','客戶狀態','基礎客戶',NULL,1,'1',NULL),('19','005','客戶狀態','潛在客戶',NULL,2,'1',NULL),('2','001','客戶行業','電子商務',NULL,2,'1',NULL),('20','005','客戶狀態','成功客戶',NULL,3,'1',NULL),('21','005','客戶狀態','無效客戶',NULL,4,'1',NULL),('22','006','客戶級別','普通客戶',NULL,1,'1',NULL),('23','006','客戶級別','VIP客戶',NULL,2,'1',NULL),('24','007','商機狀態','意向客戶',NULL,1,'1',NULL),('25','007','商機狀態','初步溝通',NULL,2,'1',NULL),('26','007','商機狀態','深度溝通',NULL,3,'1',NULL),('27','007','商機狀態','簽定合同',NULL,4,'1',NULL),('3','001','客戶行業','對外貿易',NULL,3,'1',NULL),('30','008','商機類型','新業務',NULL,1,'1',NULL),('31','008','商機類型','現有業務',NULL,2,'1',NULL),('32','009','商機來源','電話營銷',NULL,1,'1',NULL),('33','009','商機來源','網絡營銷',NULL,2,'1',NULL),('34','009','商機來源','推廣活動',NULL,3,'1',NULL),('4','001','客戶行業','酒店旅遊',NULL,4,'1',NULL),('5','001','客戶行業','房地產',NULL,5,'1',NULL),('6','002','客戶信息來源','電話營銷',NULL,1,'1',NULL),('7','002','客戶信息來源','網絡營銷',NULL,2,'1',NULL),('8','003','公司性質','合資',NULL,1,'1',NULL),('9','003','公司性質','國企',NULL,2,'1',NULL);

/*Table structure for table `customer` */

DROP TABLE IF EXISTS `customer`;

CREATE TABLE `customer` (
  `cust_id` int(32) NOT NULL AUTO_INCREMENT COMMENT '客戶編號(主鍵)',
  `cust_name` varchar(50) NOT NULL COMMENT '客戶名稱',
  `cust_user_id` int(32) DEFAULT NULL COMMENT '負責人id',
  `cust_create_id` int(32) DEFAULT NULL COMMENT '建立人id',
  `cust_source` varchar(50) DEFAULT NULL COMMENT '客戶信息來源',
  `cust_industry` varchar(50) DEFAULT NULL COMMENT '客戶所屬行業',
  `cust_level` varchar(32) DEFAULT NULL COMMENT '客戶級別',
  `cust_linkman` varchar(50) DEFAULT NULL COMMENT '聯繫人',
  `cust_phone` varchar(64) DEFAULT NULL COMMENT '固定電話',
  `cust_mobile` varchar(16) DEFAULT NULL COMMENT '移動電話',
  `cust_zipcode` varchar(10) DEFAULT NULL COMMENT '郵政編碼',
  `cust_address` varchar(100) DEFAULT NULL COMMENT '聯繫地址',
  `cust_createtime` datetime DEFAULT NULL COMMENT '建立時間',
  PRIMARY KEY (`cust_id`)
) ENGINE=InnoDB AUTO_INCREMENT=178 DEFAULT CHARSET=utf8;

/*Data for the table `customer` */

insert  into `customer`(`cust_id`,`cust_name`,`cust_user_id`,`cust_create_id`,`cust_source`,`cust_industry`,`cust_level`,`cust_linkman`,`cust_phone`,`cust_mobile`,`cust_zipcode`,`cust_address`,`cust_createtime`) values (14,'小張',NULL,1,'7','3','23','小雪','010-88888887','13848399998','100096','北京昌平區西三旗','2016-04-08 16:32:01'),(15,'小韓',NULL,2,'7','3','23','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:01'),(16,'小李',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:01'),(17,'小趙',NULL,4,'6','4','23','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:02'),(22,'小明',NULL,3,'6','2','23','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:03'),(24,'小偉',NULL,2,'7','5','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:03'),(25,'Tom',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:03'),(26,'jack',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:03'),(28,'Rose',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:04'),(29,'小韓',NULL,1,'7','1','23','小雪','010-88888886','13888888886','100096','北京昌平區西三旗','2016-04-08 16:32:04'),(30,'小葉',NULL,2,'6','2','23','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:04'),(31,'小韓',NULL,4,'7','1','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:04'),(33,'小海',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:04'),(34,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:05'),(35,'小姜',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:05'),(36,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:05'),(37,'小夢',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:05'),(38,'小孫',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:05'),(39,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:06'),(40,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:06'),(41,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:06'),(42,'小韓',NULL,1,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:06'),(43,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:06'),(44,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:07'),(45,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:07'),(46,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:07'),(47,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:07'),(48,'小高',NULL,5,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:07'),(49,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:07'),(50,'小錢',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:08'),(51,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:08'),(52,'小周',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:08'),(53,'小韓',NULL,1,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:08'),(54,'小麗',NULL,1,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:08'),(55,'小韓',NULL,1,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:08'),(56,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:09'),(57,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:09'),(58,'張三',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:09'),(59,'李四',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:29'),(60,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:29'),(61,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:29'),(62,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:29'),(63,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:30'),(64,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:30'),(65,'王五',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:30'),(66,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:30'),(67,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:30'),(68,'趙六',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:30'),(69,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:31'),(70,'小韓',NULL,1,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:31'),(71,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:31'),(72,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:31'),(73,'小七',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:31'),(74,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:32'),(75,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:32'),(76,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:32'),(77,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:32'),(78,'小鄭',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:32'),(79,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:32'),(80,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:33'),(81,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:33'),(82,'小吳',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:33'),(83,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:33'),(144,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:44'),(145,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:44'),(146,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:44'),(147,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:45'),(148,'小韓',NULL,1,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:45'),(149,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:45'),(150,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:45'),(151,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:45'),(152,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:46'),(153,'晶晶',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:46'),(154,'倩倩',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:46'),(155,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:46'),(156,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:46'),(157,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:46'),(158,'小韓',NULL,1,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:47'),(159,'小韓',NULL,2,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:47'),(160,'小韓',NULL,3,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:47'),(161,'小韓',NULL,4,'6','2','22','小雪','010-88888887','13888888888','100096','北京昌平區西三旗','2016-04-08 16:32:47'),(171,'小韓',NULL,3,'7','1','23','小雪','010-8235438','13755555555','100000','北京昌平區西三旗','2017-05-05 10:23:07'),(172,'小韓',NULL,2,'6','2','22','小雪','010-0000000','13288546521','100859','北京昌平區西三旗','2017-05-05 10:51:08'),(173,'小洛',NULL,1,'6','1','22','小雪','01062872234','13521023333','100000','北京昌平區西三旗','2017-05-05 10:57:09'),(174,'小月',NULL,1,'6','1','22','小雪','0482-8235438','13848399998','137400','內蒙古興安盟烏蘭浩特市','2017-05-05 11:33:27'),(175,'小韓',NULL,1,'6','1','22','小石','0791-88130000','15179105961','330098','江西省南昌市瑤湖高校園區','2017-05-05 13:17:11'),(176,'小智',NULL,1,'7','1','23','小黑','400-618-4000','13520203625','100091','北京市海淀區','2017-05-16 15:49:07'),(177,'小程',NULL,1,'6','1','23','小韓','010-88886616','13718026541','100000','北京市昌平區','2017-05-16 16:25:59');

/*Table structure for table `sys_user` */

DROP TABLE IF EXISTS `sys_user`;

CREATE TABLE `sys_user` (
  `user_id` int(32) NOT NULL AUTO_INCREMENT COMMENT '用戶id',
  `user_code` varchar(32) NOT NULL COMMENT '用戶帳號',
  `user_name` varchar(50) NOT NULL COMMENT '用戶名稱',
  `user_password` varchar(32) NOT NULL COMMENT '用戶密碼',
  `user_state` int(1) NOT NULL COMMENT '1:正常,0:暫停',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

/*Data for the table `sys_user` */

insert  into `sys_user`(`user_id`,`user_code`,`user_name`,`user_password`,`user_state`) values (1,'m0001','小韓','123',1),(2,'m0002','小雪','123',1),(3,'m0003','小石','123',1),(4,'m0004','小陳','123',1);

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

 


 

    ④構建包數據庫

    

  ⑤配置文件(寫在config包中)後端

       

        db.propertis中配置了鏈接數據庫的一些參數服務器

       applicationContext.xml中配置了:數據源,事務管理器,通知,切面還有Mybatis工廠以及掃描包和掃描@Service註解網絡

        Mybatis-config.xml則配置了POJO類的別名session

        Springmvc-config.xml中配置了掃描包,掃描@Controller註解,開啓註解驅動annotation-driven以及配置視圖解析器
mvc

        log4j.propertis和resource.properties則不用配置,直接CV過來就行

      最後一個配置的就是web.xml,在web.xml中配置了加載Spring文件的監聽器,編碼過濾器以及配置SpringMVC的前端核心控制器和配置服務器地洞後當即加載SpringMVC配置文件

    ⑥編寫"管理員登陸"功能

        一、在po包中User持久化類,添加id,帳號,名稱,密碼,管理員狀態等變量並添加get/set方法 

        二、在dao包中,建立UserDao接口,在接口中編寫findUser方法,並傳入"usercode","password"變量(這兩個變量在以前持久化類中)

    三、在dao包中建立UserDao.xml,在XML中先聲明映射路徑爲UserDao,在select中添加id,paremeterType,resultType參數和sql語句

   select *
        from sys_user
        where user_code = #{usercode}
        and user_password = #{password}
        and user_state = '1'

       四、在Service包中建立UserService.java接口,並編寫findUser方法,同2方法中加入"usercode","password"參數

      五、在ServiceImpl接口實現類包中建立UserServiceImpl.java實現類並繼承UserService接口,在類上邊添加@Service標籤,和@Transactional事務標籤,而後在方法中自動注入(@Autowired)userDao

     六、在controller包中建立UserController,添加@Controller註解,@Autowired註解,和@RequestMapping註解,在類中建立登陸方法(String),傳入usercode,password,Model,httpSession變量,在登陸方法中,經過帳號和密碼查詢是否存在此管理員,因而咱們調用userService.findUser(usercode,password)方法,而後咱們將登陸信息存儲到session中,並跳轉到用戶管理界面(customer.jsp),反之則仍然回到登陸界面。

   

        寫到這裏基本的管理員登陸的功能基本寫完了,可是你們發現沒有,咱們只要模擬管理界面的action,就能夠跳過登陸界面而進入用戶管理界面。那麼如何解決這個辦法呢?添加攔截器丫,攔截器能夠幫咱們完美解決這個問題。

       ==添加攔截器==

     在Interceptor包中建立LoginInterceptor類,並繼承HandlerInterceptor,而後重寫HandlerInterceptor的方法。(ps:在HandlerInterceptor有三種攔截方式:一種是預攔截,後置攔截和後處理) 由於咱們是攔截登陸,因此只要在預攔截方法中編寫代碼便可。

        首先,咱們先獲取URL請求,而後判斷這個url中是否包含以前的登陸url,若是包含則返回true

反之,則獲取Session,判斷Session中是否有用戶數據,有則返回true。經過以上兩種判斷,其餘不符合的通通進行攔截,因此咱們用request.getRequestDispatcher( )方法將頁面彈回login界面

     (ps:getRequestDispatcher是服務器內部跳轉,地址欄信息不變,只能跳轉到web應用內的網頁。而sendRedirect是頁面的重定向,地址信息改變,能夠跳轉到任意網頁)

        現在,咱們的登陸功能才作好,不再存在不登陸就跳到管理界面的狀況了

        (這個Boot-crm管理系統後期還有:查詢用戶功能,添加用戶功能,刪除用戶功能和修改用戶功能,敬請期待吧! 源碼下載: https://download.csdn.net/download/black_yejing/10446315)

相關文章
相關標籤/搜索