使用TypeScript装饰器简单模仿SpringBoot提供的@Configuration注解与@ConfigurationProperties注解
这两天才开始学习SpringBoot,遇到了两个很有意思的注解,打算用TypeScript模拟一下示例配置文件name: UpYoumap: { name: UpYou, age: 18}@ConfigurationProperties({ prefix: 'map' })@Configurationclass Preson { public age?: number = undefined; public name?: string = undefi.
原创
2021-03-23 15:46:24 ·
330 阅读 ·
0 评论