推荐
专栏
教程
课程
飞鹅
本次共找到611条
springmvc注解
相关的信息
Easter79
•
3年前
springboot使用Fiber纤程踩过的坑
@RequestAttribute为null在springboot中使用@FiberSpringBootApplication注解标注在SpringBootApplication上时,发现在拦截器(或过滤器)中调用request.setAttribute设置的值,在controller中使用@RequestAttribute获取却是null,而去
Stella981
•
3年前
Lombok使用4:链式调用
本篇文章会讲到:@Accessors、@Builder注解使用。1、@Accessors使用@Accessors官方文档地址(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fprojectlombok.org%2Ffeatures%2Fexperimental%
Stella981
•
3年前
Hibernate Validator 手动发起验证
在SpringBoot开发web项目的时候,表单参数验证,常用 HibernateValidator需要在参数类的属性上添加注解@NotNull(https://my.oschina.net/notnull),@Max(https://my.oschina.net/maxttyl),@Min(https://my.osc
Easter79
•
3年前
Swagger如何测试Date类型参数
问题Swagger测试时,参数直接输入日期格式化后的类型,会报参数日期转换错误:ConversionFailedException解决网上说在参数上添加注解@DateTimeFormat(pattern“yyyyMMdd”)或者是添加@JsonFormat(pattern”yyyyMMddHH:mm:
Stella981
•
3年前
Guava学习笔记:EventBus
EventBus基本用法:使用Guava之后,如果要订阅消息,就不用再继承指定的接口,只需要在指定的方法上加上@Subscribe注解即可。代码如下:消息封装类:public class TestEvent { private final int message;
Stella981
•
3年前
Spring Boot demo系列(四):Spring Web+Validation
2021.2.24更新1概述本文主要讲述了如何使用HibernateValidator以及@Valid/@Validate注解。2校验对于一个普通的SpringBoot应用,经常可以在业务层看到以下类似的操作:if(idnull){...}
Wesley13
•
3年前
@EnableAutoConfiguration处理逻辑
这个系列分为5篇1\.@Component,@Service等注解是如何被解析的(http://my.oschina.net/u/3907912)2\.@Enable驱动原理(https://my.oschina.net/floor/blog/4333081)3\.@EnableAutoConfiguration处理逻辑(htt
Stella981
•
3年前
Spring Boot 的常用 API 说明
1、SpringApplication类作用:用于启动SpringBoot的程序,根据传入的类的声明的注解来决定不同的启动方式示例代码:1packageorg.ranger;2importorg.springframework.boot.SpringApplication;3importorg
Wesley13
•
3年前
@Component,@Service等注解是如何被解析的
这个系列分为5篇1\.@Component,@Service等注解是如何被解析的(https://my.oschina.net/floor/blog/4325651)2.@Enable驱动原理(https://my.oschina.net/floor/blog/4333081)3\.@EnableAutoConfiguration处
Easter79
•
3年前
SpringMVC处理异常的三种方式
1
•••
36
37
38
•••
62