Looking for a dropwizard example

2019-02-01 01:20发布

Looking for a dropwizard example I found:

https://github.com/codahale/dropwizard/tree/master/dropwizard-example

But I am interested in a more complete example with at least:

  1. a 1:n relationship like customer - account
  2. a html gui represenation at least with forms
  3. full crud support for xml

2 out of three would be a start and would earn "accepted" by me.

标签: dropwizard
7条回答
Explosion°爆炸
2楼-- · 2019-02-01 02:00

That looks like a nice example as well: https://github.com/spinscale/dropwizard-blog-sample

查看更多
来,给爷笑一个
3楼-- · 2019-02-01 02:05

I wrote an example in my Dropwizard XML Bundle project:

https://github.com/yunspace/dropwizard-xml/tree/master/dropwizard-xml-example

It's probably the closest to what you are looking for. It has:

  • 1:N relationship between Pirates and Ships, stored in a H2 db.
  • Full CRUD support for XML using custom JacksonMessageBodyProvider with validation.

Adding HTML gui via Freemarker or Mustache templates should be pretty trivial and is covered in the standard docs.

查看更多
霸刀☆藐视天下
4楼-- · 2019-02-01 02:10

A good example who want dropwizard with authentication.

Dropwizard: Authentication, Configuration and HTTPS https://dzone.com/articles/getting-started-dropwizard-0

查看更多
淡お忘
5楼-- · 2019-02-01 02:13

Take a look at some of my Dropwzard projects

In particular the MultiBit Merchant projects (Admin, Store and Platform) will provide you with a wealth of demonstration code that shows how to get stuff done in Dropwizard. There is also an example of OpenID with Dropwizard that should provide a good launch point for a new application.

They are all FOSS under the MIT license.

查看更多
等我变得足够好
6楼-- · 2019-02-01 02:15

You can try this project from Github.

Dropwizard: CRUD operation, HTML views, Healthcheck

https://github.com/HoldInArms/dropwizard-mssql-crud-example

查看更多
干净又极端
7楼-- · 2019-02-01 02:17

Wolfgang,

here is an example Dropwizard application where Authentication, Configuration and database access using Hibernate are used.

The application is discussed in several tutorials:

And here is another example, where one can store bookmarks for authenticated users and access data via REST API.

Good luck.

查看更多
登录 后发表回答