java项目配置
打开配置文件'application-ddpro.yml'
##钉钉配置信息
dd:
config:
app-id:
agent-id:
app-secret:
app-corp-id:
app-key:
h5-url: http://ddh5.flyflow.cc/
web-url: http://dd.flyflow.cc/
- 应用凭证用来配置java项目的中API参数:
app-key
、app-id
、app-secret
和agent-id
点击首页-定位右上角的corpId,配置项:
app-corp-id
web-url
:钉钉扫码页面URL(电脑端的访问地址)h5-url
:h5页面访问地址
# 注意事项
由于商业版本身支持发送钉钉消息,建议对接钉钉之后,将商业版自身的钉钉消息通知给关掉
@Slf4j
//@Component
@ConditionalOnExpression("#{environment['dd.config.agent-id']!=null}")
public class DdThirdMessageImpl implements ThirdMessageStrategy, InitializingBean {
将上述类的初始化干掉即可:Component