我的 gsp 页面:
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main"/>
</head>
<body>
<oauth:connect provider="twitter">Connect to Twitter</oauth:connect>
</body>
</html>
当我运行应用程序时,我
会得到纯文本: Connect to Twitter
Don't get any button or link and sts says:
Unknown tag (oauth:connect).
我在 BuildConfig.groovy 中添加了以下内容
plugins {
compile ':oauth:2.1.0'
runtime ':oauth:2.1.0'
}
repositories {
mavenRepo "http://repo.desirableobjects.co.uk/"
}
并在 Config.groovy 中添加了以下几行
import org.scribe.builder.api.TwitterApi
oauth {
providers {
twitter {
api = TwitterApi
key = 'my key is here'
secret = 'my secret key is here'
successUri = '/success.gsp'
failureUri = '/fail.gsp'
}
}
debug = true
}
我的导入显示错误。
我错过了什么吗?