spring boot
积分中值定理
这个作者很懒,什么都没留下…
展开
-
Test报错Find why ‘xxxMapper‘ could be null解决方案
Find why 'xxx' coul be null异常分析原创 2022-12-19 15:13:45 · 3204 阅读 · 1 评论 -
ApplicationEvent&Listener完成业务解耦——SpringBoot【搬运】
SpringBoot使用ApplicationEvent&Listener完成业务解耦原创 2022-12-13 14:54:04 · 173 阅读 · 2 评论 -
@NotNull,@NotBlank,@NotEmpty注解的区别
链接看原文开发中常看见@NotNull,@NotBlank,@NotEmpty三个注解,应用场景和区别@NotNull:主要用在基本数据类型上(Int,Integer,Double)举例:@NotNull(message = “年龄不能为空”)private Integer age;@NotBlank:主要用在String字符串上面(String)举例:@NotBlank(message = “名字不能为空”)private String name;@NotEmpty;原创 2022-03-23 17:15:31 · 499 阅读 · 0 评论 -
复习-项目回顾
显示product-list页面。也就是查询product的list。所以,controller是findAll方法,在service的实现方法里注明@Service和@Tx在product-list页面上有个“新建”功能,链接地址是“product-add”。在controller层写方法save,注意,这个方法要和product-add里的form属性的提交链接一样。之后在service和dao中写方法。dao中比较麻烦,因为用的是注解@Insert进行开发,以及insert内部要写的..原创 2021-07-20 15:27:10 · 125 阅读 · 1 评论 -
错误记录:IllegalStateException: Optional int parameter ‘xxxx‘ is
参考:https://blog.csdn.net/weixin_43078114/article/details/99548433原创 2021-05-28 15:16:21 · 133 阅读 · 0 评论 -
SpringBoot+Dubbo启动不了Unable to start ServletWebServerApplicationContext
出的问题我也没搞明白为啥,因为之前没出现过。看了下前辈们的答案,有的人说缺@EnableAutoConfiguration,我添加上也不可以。后来在一个前辈博客中看到说添加个依赖没添加version以及scope,可以正常启动了。然鹅还是有几个warn,不管了哈哈哈哈成功启动图:...原创 2019-08-08 20:44:17 · 1111 阅读 · 0 评论