Dropwizard Tutorial : HTML Page Using Freemarker

Prerequisite Before you start this, Its good to follow the following articles. Running Rest API using Dropwizard Reading From Database Using Dropwizard  Writing To Database Using Dropwizard I will assume that your dropwizard project is running. Dependency Add dependency of dropwizard-freemarker-views in your pom.xml and import the changes. Your pom.xml should look like this: FreemarkerContinue reading “Dropwizard Tutorial : HTML Page Using Freemarker”

Climbing Stairs- LeetCode

Problem Statement You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? Note: Given n will be a positive integer. Example 1: Input: 2 Output: 2 Explanation: There are two ways to climb toContinue reading “Climbing Stairs- LeetCode”

Dropwizard : Write Data Into Database Using Hibernate

Please follow the first two part of the tutorial before starting this: Introduction To Dropwizard Read Data From Database Using Dropwizard Modify InfoDao To Persist Data Add a method to persist data. Add POST API to store the info in MyResource.java Test Your API Run your project. Test using postman or any other rest client.Continue reading “Dropwizard : Write Data Into Database Using Hibernate”

Design a site like this with WordPress.com
Get started