0
Good night,
I am new in Java development - Spring Boot and following a tutorial I can not generate the table in the H2 database, already tried to make some changes in the application.propreties but without success.
<?xml version="1.0" encoding="UTF-8"?>
http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 org.springframework.boot spring-boot-Starter-Parent 2.0.0.RELEASE com.julio.curswto curswto 0.0.1-SNAPSHOT curswto Java home study for conceptual modeling course with UML
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Thanks for the information, however even after the correction the table was not created in the bank.
– JULIO CESAR SILVA DE FREITAS
Would it be possible to make your project structure available? Your entities are in the hierarchy of the Spring Boot Scan?
– nullptr
At this point in the tutorial I am following, nothing has been explained about Component Scan, at the moment when the instructor creates the tables in the database, there are only 3 classes. The codes are attached.
– JULIO CESAR SILVA DE FREITAS
@JULIOCESARSILVADEFREITAS edited the answer with new information
– nullptr