Learning objectives:
Start from this:
-bash-4.2$ pwd /u/dgerman/apache/htdocs/spring-boot/fall2019/step08 -bash-4.2$ tree . . +-- pom.xml +-- src +-- main +-- java +-- com +-- example +-- demo +-- Person.java +-- SpringBoot08Application.java 6 directories, 3 files -bash-4.2$
You are creating a Spring Boot application that uses an in-memory database called H2 to store its data.
So after you make these changes what do you think you need to do?-bash-4.2$ pwd /u/dgerman/apache/htdocs/spring-boot/fall2019/step08/src/main -bash-4.2$ tree . +-- java | +-- com | +-- example | +-- demo | +-- Person.java | +-- SpringBoot08Application.java +-- resources +-- application.properties 5 directories, 3 files -bash-4.2$ pwd /u/dgerman/apache/htdocs/spring-boot/fall2019/step08/src/main -bash-4.2$ cat resources/application.properties spring.h2.console.enabled=true spring.h2.console.path=/h2-console spring.jpa.hibernate.ddl-auto=create spring.datasource.url=jdbc:h2:mem:testdb spring.h2.console.settings.web-allow-others=true -bash-4.2$
First time around don't include the last line in application.properties
. What happens?