Sunday, July 30, 2023

[java] [maven] [dropwizard] Dropwizard with JDBI

[0] Preparation.

[1] Clone project

[2] Compile Maven project

Note: you may get error like "Blocked mirror for repositories". This is due to the use of unsecured http. Open pom.xml file and replace "http://" with "https://"

[3] Run migration (h2 database)

Note: you may get error like "Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException". This is due to the JAXB APIs considered to be Java EE APIs and therefore are no longer contained on the default classpath in Java SE 9. In Java 11, they are completely removed from the JDK.

Add the following codes to the dependency section of pom.xml file

[4] Run application

The application will be opened at port 8082 (refer below console output)

No comments:

Post a Comment