om_100
om_100
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
thank you so much i will try these and see if lombok works
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
i created getter manually without setter and i got the option1 from database
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
okay i will try it now
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
<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>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.7.4</version> </dependency> <dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId> <version>5.1.0</version> </dependency> </dependencies>
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
i cant send it here because its so long
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
No description
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
no im not
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
my main class is QuizappApplication my main package is com.telusko.quizapp
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
its another class this is the code : package com.telusko.quizapp; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import lombok.Data; @Data @Entity public class Question { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) private Integer id; private String questionTitle; private String option1; private String option2; private String option3; private String option4; private String rightAnswer; private String difficultylevel; private String category; }
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
package com.telusko.quizapp.controller; import com.telusko.quizapp.Question; import com.telusko.quizapp.service.QuestionService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequestMapping("question") public class QuestionController { @Autowired QuestionService questionService; @GetMapping("allQuestions") public List<Question> getAllQuestions() { return questionService.getAllQuestions(); } }
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
No description
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
im trying to open this url to display the questions from my database : http://localhost:8080/question/allQuestions
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
No description
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
this is the full log :
56 replies
JCHJava Community | Help. Code. Learn.
Created by om_100 on 1/2/2025 in #java-help
Spring Boot Error
No description
56 replies