摘要: 构建一个定时任务的service接口及实现(模拟) 接口:com\applesnt\springboot\service\TaskService.java 实现类:com\applesnt\springboot\service\impl\TaskServiceImpl.java ==需要定时业务处理 阅读全文
posted @ 2020-04-18 21:15 努力的校长 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 说明 构建一个群发邮件的service接口及实现(模拟) 接口:com\\springboot\service\AsynxService.java 实现类:com\applesnt\springboot\service\impl\AsynxServiceImpl.java ==需要异步业务处理的方法 阅读全文
posted @ 2020-04-18 20:19 努力的校长 阅读(689) 评论(0) 推荐(0) 编辑
摘要: MyBatis默认提供了一个数据库连接池PooledDataSource,在此我们使用阿里提供的Druid数据库连接池 项目下载:https://files.cnblogs.com/files/applesnt/springboot db.zip 1:建表sql语句 sql CREATE TABLE 阅读全文
posted @ 2020-04-18 20:17 努力的校长 阅读(333) 评论(0) 推荐(0) 编辑
摘要: ==springboot2.2.6 delete请求报错,降至2.1.11功能可用 原因未知== 构建员工删除请求 com\springboot\controller\EmployeeController.java 在list.html增加删除员工按钮 resources\templates\lis 阅读全文
posted @ 2020-04-18 20:15 努力的校长 阅读(565) 评论(0) 推荐(1) 编辑
摘要: 构建员工修改请求 com\springboot\controller\EmployeeController.java 在list.html增加编辑员工按钮 resources\templates\list.html 构建修改页面 resources\templates\add.html(公用添加页, 阅读全文
posted @ 2020-04-18 20:14 努力的校长 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 构建员工添加请求 com\springboot\controller\EmployeeController.java 在list.html增加添加员工按钮 resources\templates\list.html 构建添加页面 resources\templates\add.html form表单 阅读全文
posted @ 2020-04-18 20:12 努力的校长 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 构建员工controller com\springboot\controller\EmployeeController.java 构建显示员工信息 resources\templates\list.html 页面展示 阅读全文
posted @ 2020-04-18 20:11 努力的校长 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 把顶部和左侧的公共代码分别放到header.html和left.html中 顶部代码:resources\templates\header.html 主内容展示: 在dashboard.html和list.html页面分别引入顶部和左侧页面: list.html 主内容展示: dashboard.h 阅读全文
posted @ 2020-04-18 20:10 努力的校长 阅读(332) 评论(0) 推荐(1) 编辑
摘要: 1:构建登录javaBean com\springboot\vo\LoginUser.java 2:构建登录controller com\springboot\controller\LoginController.java 3:构建登录拦截器 4:把登录拦截器添加到spring以及添加主页视图解析器 阅读全文
posted @ 2020-04-18 20:09 努力的校长 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1:IDEA编码设置UTF 8 2:创建国际化文件 3:添加中英文 login_en_US.properties: login_zh_CN.properties: 4:国际化配置 5:首页国际化 resources\templates\index.html 6:首页访问(读取默认语言) 7:编写中英 阅读全文
posted @ 2020-04-18 20:07 努力的校长 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1:编写Controller com\springboot\controller\IndexController.java 首页跳转controller 2:添加扩展视图解析器 com\springboot\config\MyConfig.java 3:首页展示: 阅读全文
posted @ 2020-04-18 20:06 努力的校长 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1:静态资源 下载静态资源:https://files.cnblogs.com/files/applesnt/ztzy.zip 项目下载:https://files.cnblogs.com/files/applesnt/hellospringboot.zip 把css、js、img文件夹放在stat 阅读全文
posted @ 2020-04-18 20:04 努力的校长 阅读(174) 评论(0) 推荐(0) 编辑