3 ms·
Does anyone have any opinions on DropWizard as a framework? Is it the minimalist web framework for Java, similar to Flask for Python?
by steven2012 11y ago
Does anyone have any opinions on DropWizard as a framework? Is it the minimalist web framework for Java, similar to Flask for Python?
- siavosh 11y agoI've heard good things about it, but my understanding is it's ideal for creating REST endpoints, so it doesn't have some standards MVC stuff out of the box. Spark is a JVM version of Sinatra which may be closer to what you're looking for.
- twic 11y ago"The dropwizard-views-mustache & dropwizard-views-freemarker modules provides you with simple, fast HTML views using either FreeMarker or Mustache": https://dropwizard.github.io/dropwizard/manual/views.html https://dropwizard.github.io/dropwizard/manual/views.html "The dropwizard-forms module provides you with a support for multi-part forms via Jersey": https://dropwizard.github.io/dropwizard/manual/forms.html https://dropwizard.github.io/dropwizard/manual/forms.html If you can render HTML in responses and accept multipart/form-data in requests, does Jersey become an adequate MVC framework? If not, what is it missing?
- brianwawok 11y agoIt's ok for Java. Much rather be in Scala land though, and exploit the JVM for all it's worth.
- logn 11y agoI've used all the technologies in DropWizard, but not DropWizard itself. I do think their project is on the right track and pretty much my ideal solution. But because they've designed a one-size-fits-all stack for any project, it looks overkill for a lot of apps. I.e., you can just use plain Jersey+Grizzly/Jetty+Freemarker. I've been meaning to put a simple project together which ties all those into a functioning web and app server. The trick to turning Jersey into a web server (for static files) is along the lines of this: https://github.com/MachinePublishers/ScreenSlicer/blob/master/webapp/src/com/screenslicer/webapp/WebAppConfig.java https://github.com/MachinePublishers/ScreenSlicer/blob/maste...