android服务器端开发框架--jersey+hibernate+spring+annotation

来源:互联网 发布:c语言char a[]= 编辑:程序博客网 时间:2024/06/07 14:01
采用rest中的jersey框架,并且结合hibernate(面对对象数据库)+spring(依赖注入)+注解的方式,hibernate不用在去写***.hbm.xml,直接在类中去配置。同时spring不用在


applicationContext.xml去写注入的类。applicationContext.xml

这是文件的目录


这里用的注解,包括@service,@resource  ; @GET则是表示rest中的几种操作的一中

http://localhost:8888/Jtoone/helloworld

当你运行改程序后,http://localhost:8080/Jtoone/helloworld将显示相应的界面。

源代码可以在这里下载:http://download.csdn.net/detail/ssszzzbbb/8351849


0 0
原创粉丝点击