摘要: 版权声明:本文为CSDN博主「justry_deng」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/justry_deng/article/details/80972817 基础知识介绍: @Request 阅读全文
posted @ 2020-02-23 15:27 李jojo 阅读(234) 评论(0) 推荐(0) 编辑
摘要: <!--需要区分是员工修改还是添加;--><form th:action="@{/emp}" method="post"> <!--发送put请求修改员工数据--> <!-- 1、SpringMVC中配置HiddenHttpMethodFilter;(SpringBoot自动配置好的) 2、页面创建 阅读全文
posted @ 2020-01-02 10:05 李jojo 阅读(3463) 评论(0) 推荐(0) 编辑
摘要: 相在HTML中使用thymeleaf模板引擎,必须先导入thymeleaf的名称空间。 导入它是为了有语法提示。据说不导也没关系。 阅读全文
posted @ 2019-12-19 10:37 李jojo 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 1.maven工程导入依赖 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>RELEASE</version> </dependency> <dependency> <group 阅读全文
posted @ 2019-12-13 16:02 李jojo 阅读(1429) 评论(0) 推荐(0) 编辑
摘要: 1、安装redis步骤 1、推荐进入到linux路径/usr/local/src 2、$ wget http://download.redis.io/releases/redis-4.0.10.tar.gz3、$ tar xzf redis-4.0.10.tar.gz 4、$ cd redis-4. 阅读全文
posted @ 2019-12-10 10:49 李jojo 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 1 修改pom文件 2 创建Ehcache的配置文件 文件名:ehcache.xml 位置:src/main/resources/ehcache.xml <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noName 阅读全文
posted @ 2019-12-09 16:53 李jojo 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个maven项目 2.导入SpringBoot相关的依赖 3.编写主程序,启动SpringBoot应用 4.编写相关的Controller 5.运行主程序测试 6.SpringBoot简化部署 阅读全文
posted @ 2019-12-09 15:26 李jojo 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 一,访问静态资源 1. SpringBoot从classpath/static的目录 注意目录名称必须是static 1. ServletContext根目录下 在src/main/webapp 目录名称必须要webapp 一,文件上传 1. 编写Controller 2 编写启动类 3. 设置上传 阅读全文
posted @ 2019-12-09 10:06 李jojo 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 1 整合servlet 通过注解扫描完成servlet组件的注册 1.1编写servlet 1.2编写启动类 @WebServlet(name="FirstServlet",urlPatterns="/first") @SpringBootApplication @ServletComponentS 阅读全文
posted @ 2019-12-09 09:44 李jojo 阅读(1654) 评论(0) 推荐(0) 编辑
摘要: SpringBootData JPA介绍 SpringData:其实SpringData就是Spring提供了一个操作数据的框架。而SpringData JPA只是SpringData框架下的一个基于JPA标准操作数据的模块。 SpringData JPA:基于JPA的标准数据进行操作。简化操作持久 阅读全文
posted @ 2019-12-08 16:32 李jojo 阅读(130) 评论(0) 推荐(0) 编辑