Commit c1d0bb81 authored by wujipeng's avatar wujipeng
Browse files

配置优化

parent ee018bbb
......@@ -7,6 +7,7 @@ import com.dingtalk.api.response.OapiGettokenResponse;
import com.taobao.api.ApiException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
/**
* @author : wujipeng
......@@ -15,12 +16,13 @@ import org.springframework.context.annotation.Configuration;
* @Desc : 钉钉token获取
*/
@Configuration
@Component
public class PermissionConfig {
@Value("ding.key")
@Value("${ding.key}")
private String key;
@Value("ding.secret")
@Value("${ding.secret}")
private String secret;
public String getAccessToken() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment