摘要:
在resource目录下配置一个aliyun.properties文件 用于存储密钥 @PropertySource 用于寻找要加载properties文件目录 ConfigurationProperties 寻找propeties中自动添加前缀 之后只要在类中添加properties文件中去除前缀 阅读全文
posted @ 2021-05-27 23:30
RainbowMagic
阅读(169)
评论(0)
推荐(0)
摘要:
首先 使用@EnableSwagger2 使项目开启swagger功能 apinfo用于配置文档的基本信息 private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("自媒体接口API") .contact(new Contact( 阅读全文
posted @ 2021-05-27 22:33
RainbowMagic
阅读(70)
评论(0)
推荐(0)

浙公网安备 33010602011771号