4 changed files with 31 additions and 3 deletions
@ -0,0 +1,25 @@ |
|||||
|
package com.bnyer.file.config; |
||||
|
|
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
import org.springframework.beans.factory.annotation.Value; |
||||
|
import org.springframework.cloud.context.config.annotation.RefreshScope; |
||||
|
import org.springframework.context.annotation.Configuration; |
||||
|
|
||||
|
/** |
||||
|
* @Author: chengkun |
||||
|
* @Date: 2022-06-12-16:24 |
||||
|
* @Description: |
||||
|
*/ |
||||
|
@Configuration |
||||
|
@RefreshScope |
||||
|
@Getter |
||||
|
@Setter |
||||
|
public class ImgConfig { |
||||
|
|
||||
|
@Value("${img.fileSize}") |
||||
|
private String fileSize; |
||||
|
|
||||
|
@Value("${img.accuracy}") |
||||
|
private String accuracy; |
||||
|
} |
||||
Loading…
Reference in new issue