
springboot
cheng2901
这个作者很懒,什么都没留下…
展开
-
jdk 集合工具类判空
java 集合工具类判断原创 2022-06-30 21:51:49 · 260 阅读 · 0 评论 -
springboot 自定义注解
springboot 自定义注解一、注解的基本元素修饰符元注解二、实战1、新建注解类2、注解类的解析3、配置拦截器并放开swagger4、编写接口验证一、注解的基本元素修饰符访问修饰符必须为public,不写默认为pubic;关键字关键字为@interface;注解名称注解名称为自定义注解的名称,就是注解名称注解类型元素注解类型元素是注解中内容,根据需要标志参数,元注解(@Target、@Retention、@Inherited、@Documented)这四个注解就是元注解,元注解的作原创 2022-01-03 21:50:34 · 415 阅读 · 0 评论 -
Springboot使用JSP
Springboot使用jsp注意事项:pom.xml依赖: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>原创 2020-05-27 11:12:19 · 270 阅读 · 0 评论 -
springboot整合thymeleaf
Exception processing template “xxx”: Error resolving template “xxx”, template might not exist or might not be accessible by any of the configured Template Resolversorg.thymeleaf.exceptions.TemplateIn...原创 2020-04-16 14:20:18 · 145 阅读 · 0 评论 -
springboot文件上传并作回显
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.6.RELEASE</versio...原创 2019-11-18 19:39:18 · 682 阅读 · 0 评论 -
SpingBoot整合Mybatis
springboot整合mybatis实现事物pom.xml引入依赖:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <...原创 2019-04-08 09:33:28 · 169 阅读 · 0 评论 -
springboot配置文件书写
springboot配置文件的编写#配置端口号server.port=8899#配置上下文路径server.servlet.context-path=/xxx#设置缓存为falsespring.thymeleaf.cache=false#spring.mvc.view.prefix=/#spring.mvc.view.suffix=.html#如果templates下的静态资源不...原创 2019-09-12 16:10:26 · 299 阅读 · 0 评论