摘要: 2023-11-20 导入的依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> packag 阅读全文
posted @ 2023-11-20 16:20 努力是一种常态 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 2023-09-27 阅读全文
posted @ 2023-09-27 15:39 努力是一种常态 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 2023-09-18 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.2.16</version> </dependency> appl 阅读全文
posted @ 2023-09-18 21:51 努力是一种常态 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 2023-09-18 package com.hh.controller; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Controller; import org.springframework.w 阅读全文
posted @ 2023-09-18 16:53 努力是一种常态 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 2023-09-17 package com.hh.springboot05.config; import com.hh.springboot05.bean.Pet; import org.springframework.context.annotation.Bean; import org.spr 阅读全文
posted @ 2023-09-17 21:50 努力是一种常态 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 2023-09-17 spring: mvc: hiddenmethod: filter: enabled: true server: servlet: encoding: charset: UTF-8 force: true enabled: true 阅读全文
posted @ 2023-09-17 19:03 努力是一种常态 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 2023-09-17 加载图片的静态资源可以放在resources下面的四个文件夹中,命名必须为 (1)“META-INF”下的“resources” 或者(2)public 或者(3)resources 或者(4)static application.yml 设置静态资源的访问路径 设置静态资源存 阅读全文
posted @ 2023-09-17 17:48 努力是一种常态 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 2023-09-16 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.a 阅读全文
posted @ 2023-09-16 17:27 努力是一种常态 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 2023-09-16 导入的依赖 <dependencies> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.4</version> 阅读全文
posted @ 2023-09-16 12:40 努力是一种常态 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 2023-09-16 方式一 springmvc.xml <!--配置异常处理器--> <bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"> <property name="exce 阅读全文
posted @ 2023-09-16 11:37 努力是一种常态 阅读(8) 评论(0) 推荐(0) 编辑