AndroidAnnotations 4.3.1和Spring rest集成

從com.android.tools.build:gradle:2.3.0開始支持annotationProcessor, 所以我們可以不再使用com.neenbedankt.gradle.plugins:android-apt:1.8。

下面是AndroidAnnotations 4.3.1和Spring Rest的集成,由于資料較少,每次都要查,所以整理下,便于自己和大家使用。另外由于spring rest template的模板庫更新較慢,如果是新建項目不建議使用,可以直接使用OkHttp3和Retrofit 2。

compile'org.androidannotations:rest-spring:4.3.1'.

compile'org.androidannotations:rest-spring-api:4.3.1'

compile'com.fasterxml.jackson.core:jackson-databind:2.8.9'

compile'org.androidannotations:androidannotations-api:4.3.1'

annotationProcessor'org.androidannotations:androidannotations:4.3.1'

compile'org.springframework.android:spring-android-rest-template:2.0.0.M4'

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容