H2 DataBase

1. Create Spring Projects from New Starter Projects


2.  Select

3. 


4 H2demoApplication Class

package com.h2demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class H2demoApplication {

public static void main(String[] args) {
SpringApplication.run(H2demoApplication.class, args);
}
}


5  application.properties
server.port=9009
spring.thymeleaf.cache=false

spring.h2.console.enabled=true
spring.h2.console.path=/console


6 Run the program. It will display
======================================================

7
8

Comments

Popular posts from this blog