Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
c1d0bb81
Commit
c1d0bb81
authored
Mar 03, 2025
by
wujipeng
Browse files
配置优化
parent
ee018bbb
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/ding/PermissionConfig.java
View file @
c1d0bb81
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment