"src/git@gitlab.ruzhoukj.com:wujipeng/ops.git" did not exist on "8e6890ccfd21c876aaa2e9846389085756f6fbb2"
Commit c1d0bb81 authored by wujipeng's avatar wujipeng
Browse files

配置优化

parent ee018bbb
...@@ -7,6 +7,7 @@ import com.dingtalk.api.response.OapiGettokenResponse; ...@@ -7,6 +7,7 @@ import com.dingtalk.api.response.OapiGettokenResponse;
import com.taobao.api.ApiException; import com.taobao.api.ApiException;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
/** /**
* @author : wujipeng * @author : wujipeng
...@@ -15,12 +16,13 @@ import org.springframework.context.annotation.Configuration; ...@@ -15,12 +16,13 @@ import org.springframework.context.annotation.Configuration;
* @Desc : 钉钉token获取 * @Desc : 钉钉token获取
*/ */
@Configuration @Configuration
@Component
public class PermissionConfig { public class PermissionConfig {
@Value("ding.key") @Value("${ding.key}")
private String key; private String key;
@Value("ding.secret") @Value("${ding.secret}")
private String secret; private String secret;
public String getAccessToken() { 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