博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
BOOT客户管理系统IDEA开发(一)
阅读量:3939 次
发布时间:2019-05-23

本文共 8430 字,大约阅读时间需要 28 分钟。

一、开发环境

IntelliJ IDEA 2019.3.1 + MySQL 5.7.25

二、系统文件组织结构

12

注:out和target是自动生成不需要手动创建

三、准备所需JAR包

在这里插入图片描述

在这里插入图片描述
注:mysql-connector-java包不建议用最新的,连接低版本数据库可能会报错
话不多说,小编找了好久的包放云盘了
https://pan.baidu.com/s/1aiy3K80bxA61rB7rm3x3Mg

四、开始配置配置文件

applicationContext.xml

 

db.properties

jdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/boot_crmjdbc.username=rootjdbc.password=你的数据库密码jdbc.maxTotal=30jdbc.maxIdle=10jdbc.initialSize=5

log4j.properties

# Global logging configurationlog4j.rootLogger=ERROR, stdout# MyBatis logging configuration...log4j.logger.com.itheima.core=DEBUG# Console output...log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
 

mybatis-config.xml

resource.properties

customer.from.type=002customer.industry.type=001customer.level.type=006
 

springmvc-config.xml

 

web.xml

contextConfigLocation
classpath:applicationContext.xml
org.springframework.web.context.ContextLoaderListener
encoding
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
encoding
*.action
crm
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:springmvc-config.xml
1
crm
*.action
index.jsp
 

五、开始配置JSP

index.jsp

<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
 

login.jsp

<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>    登录页面    
 

customer.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"         pageEncoding="UTF-8"%><%@ page trimDirectiveWhitespaces="true"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%--<%@ taglib prefix="itheima" uri="http://itheima.com/common/"%>--%><%    String path = request.getContextPath();    String basePath = request.getScheme() + "://" + request.getServerName()            + ":" + request.getServerPort() + path + "/";%>    
客户管理-BootCRM

客户管理

新建
客户信息列表
编号 客户名称 客户来源 客户所属行业 客户级别 固定电话 手机 操作
${ row.cust_id} ${ row.cust_name} ${ row.cust_source} ${ row.cust_industry} ${ row.cust_level} ${ row.cust_phone} ${ row.cust_mobile} 修改 删除

转载地址:http://hwywi.baihongyu.com/

你可能感兴趣的文章
印刷业ERP启蒙
查看>>
Java8 Lambda表达式使用集合(笔记)
查看>>
Java魔法师Unsafe
查看>>
spring cloud java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
查看>>
Centos系统安装MySQL(整理)
查看>>
postgresql计算两点距离(经纬度地理位置)
查看>>
postgres多边形存储--解决 Points of LinearRing do not form a closed linestring
查看>>
postgresql+postgis空间数据库总结
查看>>
spring 之 Http Cache 和 Etag(转)
查看>>
基于Lucene查询原理分析Elasticsearch的性能(转)
查看>>
HttpClient请求外部服务器NoHttpResponseException
查看>>
springCloud升级到Finchley.RELEASE,SpringBoot升级到2.0.4
查看>>
Spring boot + Arthas
查看>>
omitted for duplicate jar包冲突排查
查看>>
如何保证缓存与数据库的双写一致性?
查看>>
java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy排查
查看>>
深浅拷贝,深浅克隆clone
查看>>
Java基础零散技术(笔记)
查看>>
Mysql优化sql排查EXPLAIN EXTENDED
查看>>
线程之间数据传递ThreadLocal,InheritableThreadLocal,TransmittableThreadLocal
查看>>