先在application.yml文件中添加:比如自定义60秒,注意驼峰命名变量 generalPlatformProperties:请求第三方超时时间自定义,默认15000ms httpMaxConnectionTime:60000 创建对应的类和属性: @Data @Component @ConfigurationProperties(prefix="general") publicclassGeneralPlatformProperties{ //为属性赋值 @Value("${generalPlatformProperties.httpMaxConnectionTime}")...

关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~