| | |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.util.DigestUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | |
| | | private String encryptstr; |
| | | |
| | | public String getEncryptStr() { |
| | | String sb = new StringBuilder() |
| | | .append(accesskeyid) |
| | | .append(accesskeysecret) |
| | | .append(getTimeStamp()) |
| | | .toString(); |
| | | String sb = accesskeyid + |
| | | accesskeysecret + |
| | | getTimeStamp(); |
| | | encryptstr = DigestUtils.md5DigestAsHex(sb.getBytes()); |
| | | return encryptstr; |
| | | } |