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'

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容