GithubHelp home page GithubHelp logo

joaodavila / kickstart-springjerseyhibernate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alesaudate/kickstart-springjerseyhibernate

0.0 1.0 0.0 229 KB

A fully functional project configured with spring, spring security, REST (with Jersey) and Hibernate. The intent is to provide a bootstrap for this configuration.

Java 100.00%

kickstart-springjerseyhibernate's Introduction

Notes of changes

This is a quick start guide for developing and running a REST application with JAX-RS backed by Jersey.

Feel free to modify it to your own needs. The package ::com.alesaudate.samples.springjersey.example:: contains stuff to demonstrate how to use this quickstart - you should delete it to use in your projects.

Also, if you want to rename the packages, just make it sure that spring will keep track of the changes. Spring files to be modified are applicationContext.xml and security-context.xml.

If you want to change database stuff, just place your modifications at persistence.xml file.

Running the sample

In order to see the app running, initialize the container with this app (you may use mvn jetty:run), and, next, run the main method in the class PersonClientTest.

Then, visit the following URL's (on browser - you will need to use username and password. Use admin - admin):

Also, you may want to check out the application's WADL. Just point your browser to http://localhost:8080/springhibernate/application.wadl to see it (you must not authenticate to do so).

What is built-in

The following stuff are used:

  • JAX-RS (REST Services backed by Jersey - JAX-RS's Reference Implementation)
  • JPA (backed by Hibernate)
  • Spring core (to wire everything)
  • Spring security (to protect the resources).

These stuff will give you some of the blueprints on REST concepts, like using a WADL and HATEOAS. The HATEOAS stuff is not fully finished (it needs little adjustments when referencing other stuff), but it definitely helps giving you a hint on what is HATEOAS and why it is a blueprint on REST.

kickstart-springjerseyhibernate's People

Contributors

alesaudate avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.