spring-boot-intro | This is a repository that will contain all of the code | Learning library
kandi X-RAY | spring-boot-intro Summary
kandi X-RAY | spring-boot-intro Summary
This is a repository that will contain all of the code for my Spring Boot Introduction course.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spring-boot-intro
spring-boot-intro Key Features
spring-boot-intro Examples and Code Snippets
Community Discussions
Trending Discussions on spring-boot-intro
QUESTION
when I'm trying to save roles in the database, the "springit.role table doesn't exist" occur.
I'm not creating a table with name "role" in my database because the teacher in the course which I'm learning now didn't create one.
The exception shown when I call the "addUsersAndRoles()" in the DatabaseLoader class method
So, what is the problem?
Role.java
...ANSWER
Answered 2021-Feb-08 at 06:31For sure you are going to need that table, either created by yourself or by Hibernate.
There is a config which you can add to spring boot apps using JPA in order to automatically generate the database schema (or the parts that are missing). Take a look here https://docs.spring.io/spring-boot/docs/1.1.0.M1/reference/html/howto-database-initialization.html
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-boot-intro
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page