Issue
I have to persist the following class
public class Hotel {
@Id
private String hotelName;
private String RoomType;
private String status;
private int Price;
private int gst;
and I need to open the H2-console to check If the table is created properly or not.
Solution
In spring Servlet.xml I would use the following bean property:
<bean id="h2Server"class="org.h2.tools.Server" factory-method="createWebServer"init-method="start"destroy-method="stop">
<constructor-arg value="-web,-webAllowOthers,-webPort,8086"/>
</bean>
Answered By - UtsavC