• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






金天黑日

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  springboot

 
@Configuration
摘要:1.源码 @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented @Component public @interface Configuration { @AliasFor(annotation = Com 阅读全文
posted @ 2022-03-06 16:33 金天黑日
springboot返回数据null参数设为空字符串或空数组
摘要:package com.ruoyi.framework.config.ResponseVoConfig.WebConfig; /** * @Classname MyJsonMapper * @Description TODO * @Date 2022/1/20 0020 上午 10:39 * @Cr 阅读全文
posted @ 2022-01-20 10:51 金天黑日 阅读(949) 评论(0) 推荐(0)
Springboot返回数据给前端-参数为null处理
摘要:转:https://www.pianshen.com/article/950119559/ 1.返回对象参数为null时,该参数选择显示或者不显示 在返回参数给前端的时候,有些参数的值为null的时候,我们可以设置需要显示或者不需要显示 1.1设置返回为null的参数 在配置文件中加入配置 spri 阅读全文
posted @ 2022-01-18 15:46 金天黑日 阅读(4635) 评论(0) 推荐(0)
@Slf4j -- lombok.extern.slf4j.Slf4j;
摘要:@Log4j:注解在类上;为类提供一个 属性名为log 的 log4j 日志对像 package com.atguigu.springcloud.controller; import com.atguigu.springcloud.entities.CommonResult; import com. 阅读全文
posted @ 2020-12-16 09:42 金天黑日 阅读(2135) 评论(0) 推荐(0)
@mapper注解
摘要:1.标记这是一个映射接口,这样子写还是需要写xml文件 package com.atguigu.springcloud.dao; import com.atguigu.springcloud.entities.Payment; import com.atguigu.springcloud.entit 阅读全文
posted @ 2020-12-16 09:38 金天黑日 阅读(4697) 评论(0) 推荐(0)
@Bean
摘要:原文 https://www.cnblogs.com/cxuanBlog/p/11179439.html 1.源码 /* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache Licen 阅读全文
posted @ 2020-11-25 16:37 金天黑日
spring-in-action-day04-配置属性 @ConfigurationProperties
摘要:1.Spring环境抽象的概念 2.怎么配置属性。在application.yml举例一些常用的配置 3.自定义配置属性@ConfigurationProperties(prefix = "xx.xxxx") 3.1在类上使用 3.2在方法上使用 配置属性元数据-即给配置属性加注释说明 使用prof 阅读全文
posted @ 2020-09-10 18:12 金天黑日 阅读(233) 评论(0) 推荐(0)