Home/Support/Support Forum/Not able to see table created through spring boot java
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Not able to see table created through spring boot java

0 votes
Hi,

I am trying to see my table created through java in H2 console, but i cannot see any table created in H2 console. I am using spring boot, and i am not using spring security, just i have created a simple dummy code to try H2 database for understanding. I have tried many solutions provided on questions asked on the same topic on stack-overflow but non of them works for me.

My Config property file is:

spring.h2.console.enabled=true
spring.datasource.platform=h2
spring.datasource.url=jdbc:h2:file:D:/temp/test
Entity class code are as follows:

@entity
public class Alien {

@Id
private int aId;
private String aName;

public int getaId() {
return aId;
}

public void setaId(int aId) {
this.aId = aId;
}

public String getaName() {
return aName;
}

public void setaName(String aName) {
this.aName = aName;
}
}

I found one solution for this from the best <a href=https://www.sevenmentor.com/java-training-classes-in-pune.php>Java classes in pune</a>.Java classes in pune

Check that and If you have ,please suggest me more answers rather than this.
asked Mar 12 in 3rd Party Python and API development in other Languages by surbhinahta New to the Community (0 points)

Please log in or register to answer this question.

...