当前位置:网站首页>成员内部类使用方式(工作)
成员内部类使用方式(工作)
2022-07-31 05:19:00 【想要飞翔的企鹅】
此成员内部类可以实现将yml文件中配置的一些信息注入到bean中,并且很清晰明了让我们知道其中每个代表的含义,不用使用多个类去实现。
@Data
@Component
@ConfigurationProperties(prefix = "mobile.jwt")
public class JwtProperties {
private User user = new User();
@Data
public class User{
private Integer expire;
private String name;
private String domain;
private Integer interval;
}
}
mobile:
jwt:
user:
expire: 24
name: MOBLIE_TOKEN
domain:
interval: 600
边栏推荐
- ROS service transfer pictures
- 物联网时代网络安全成第一大关
- IDEA overview and installation and debugging
- crontab timing operation
- DOM操作-通过关系来获取元素
- 2022年软件测试现状最新报告
- 可下载视频可下载图片的函数
- 记录一下,今天开始刷剑指offer
- Pytorch study notes 10 - detailed explanation of convolutional neural network and application of multi-classification task of mnist dataset
- 在 AWS 上从零开始设置 Incredibuild 构建系统
猜你喜欢
随机推荐
什么样的人不适合入行编程?你真的适合学习编程吗?
力扣.三数之和/四数之和
Pytorch learning notes 09 - multiple classification problem
APP测试:测试流程及常规测试内容
ES6-01-ES的简介
MySQL表的增删改查(1)
Unity导入我的世界模型,简单图解教程(包括调整材质贴图和光照和添加碰撞)
routeros KVM安装LEDE 20191030最新版应用
ES6-03-解构赋值
webdriver.定位元素
When solving background-size:cover, the picture is covered but not displayed completely?
力扣.字母异位词分组
VS2019配置配置项目属性自定义输出目录与中间目录
面试总爱问的一个问题,你为什么离职上一份工作?
911崩了,自养号测评环境IP有哪些更好的选择
file和stat命令的使用,文件类型:代表字符,以及英文
【博学谷学习记录】超强总结,用心分享 | 软件测试 抓包
Where can I find the private files set by myself?
Unity版本升级问题总结
小型网站组建(ENSP)