skip to Main Content

Spring Boot HelloWorld not working on IntelliJ IDEA – Ubuntu

I am trying to run a Hello World application with Spring Boot on IntelliJ IDEA. I have the following code: package com.example.springbootexample; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringBootExampleApplication { public static void main(String[] args) { SpringApplication.run(SpringBootExampleApplication.class, args); }…

VIEW QUESTION

Mongodb – SpringBoot – Unsatisfied dependency expressed through field

I was trying for CRUD services using springboot with mongodb. Getting error while running main application. ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productController': Unsatisfied dependency expressed through field 'productServiceImpl';…

VIEW QUESTION

Spring boot unable to create database schema and insert values on load at MYSQL

I'm unable to get spring boot to automatically load my database schema when I start it up. I am using MySQL as an external DB. Please find below the code application properties spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect spring.jpa.hibernate.ddl-auto=update spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/carsdb spring.datasource.username=root spring.datasource.password=password Application.java package…

VIEW QUESTION
Back To Top
Search