skip to Main Content

Table is not creating in MySQL server from Spring JPA

I have written the code. It goes like - Here is my GitHub Repo - https://github.com/SuvamNaskar/spring-learn.git spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:2023/student?createDatabaseIfNotExist=true&useSSL=false spring.datasource.username=root spring.datasource.password=system32 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.data.jpa.repositories.enabled=true spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true spring.thymeleaf.check-template-location=false spring.jpa.generate-ddl=true spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.defer-datasource-initialization= true spring.jpa.open-in-view=false logging.level.org.hibernate.SQL=DEBUG logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl This is my application.properties file. I have tried…

VIEW QUESTION

Html – @PutMapping doesn't work in my SpringBoot project

I've tried to implement TodoList editing into my GetTodoController and it doesn't work. <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Create Todo</title> <link rel="stylesheet" th:href="@{/styles/todo/operation.css}"> </head> <body> <h2>Edit your Todo!</h2> <form th:method="PUT" th:action="@{/todo/edit/{id}(id=${list.id})}" th:object="${list}"> <label for="name">Name: </label> <input type="text"…

VIEW QUESTION

Javascript – Avoid reversing the array

I have my SpringBoot JPA repository like below: public interface ApplicationRepository extends JpaRepository<Application, Long>{ List<Application> findAllByOrderByApplicationyearDesc(); List<Application> findAllByOrderByApplicationyearAsc(); } And my controller is: @GetMapping("/get-data") public ResponseEntity<Map<String, Long>> getPieChart() { List<Application> apps = appRepository.findAllByOrderByApplicationyearDesc(); Map<String, Long> graphData = new TreeMap<>(); for…

VIEW QUESTION

Redis – Bean type not be found

I'm encountering an issue with my Spring Boot application and need assistance to resolve it. Below is the relevant code and the error message: MessageRepository: package com.varpm.listener; import com.test.model.MessageEntity; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; @Repository public interface MessageRepository extends CrudRepository<MessageEntity, String>…

VIEW QUESTION
Back To Top
Search