【问题标题】:How to insert and retrieve data from database with Web Service in java using JAX - RS and tomcat in eclipse [duplicate]如何使用JAX在Java中使用Web服务从数据库中插入和检索数据-Eclipse中的RS和tomcat [重复]
【发布时间】:2012-04-22 10:18:41
【问题描述】:

可能重复:
How to insert data from database with Web Service in java using JAX - RS

如何使用 JAX 从数据库中插入和检索数据 - RS(Jersey) 和 java 中使用 eclipse 的 tomcat?请给出解决方案。

【问题讨论】:

标签: java mysql eclipse tomcat jersey


【解决方案1】:

您可以为数据库使用hibernate或Spring配置。您可以轻松地将jersey与spring集成。为Jersey和数据库创建通用POJO类。

这里有一些链接 -

http://www.mkyong.com/webservices/jax-rs/jersey-spring-integration-example/

http://www.mkyong.com/spring/maven-spring-jdbc-example/

【讨论】:

    猜你喜欢
    • 2012-04-22
    • 2012-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多