Skip to main content

Posts

Showing posts with the label Postman

how to create rest api using spring boot in eclipse

 how to create rest api using spring boot in eclipse For Explanation Watch Video: Directory: application.properties:: #server port server.port=3031 #datasource spring.datasource.url=jdbc:mysql://localhost:3306/new spring.datasource.username=root spring.datasource.password=root #jpa spring.jpa.show-sql=true spring.jpa.hibernate.ddl-auto=create SpringBootRestApplication  package com.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringBootRestApplication { public static void main(String[] args) { SpringApplication.run(SpringBootRestApplication.class, args); } } StudentController  package com.app.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.s...