Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-jpa</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- spring.datasource.url = jdbc:mysql://localhost:3306/springboot
- spring.datasource.username =
- spring.datasource.password =
- spring.jpa.show-sql = true
- spring.jpa.hibernate.ddl-auto = update
- spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect
- package com.manoj.springdata;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- @SpringBootApplication
- public class CourseApiDataApplication {
- public static void main(String[] args) {
- SpringApplication.run(CourseApiDataApplication.class, args);
- }
- }
- @Entity
- public class TheVo{
- @Id
- private String id;
- private String name;
- private String description;
- public TheVo() {
- }
- public TheVo(String id, String name, String description) {
- this.id = id;
- this.name = name;
- this.description = description;
- }
- //setter and getter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement