Skip to content

Tag: spring-boot

Failed to determine a suitable driver class spring

When I run my Spring Boot project, I get this error: Description: Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database …

Property file reading error in spring boot

Below is my yml file in spring boot app below value access is working file but when I try to access in below way it gives an error. I checked it gives error only when add “com.cloudimpl.outstack.runtime.EventRepositoryFactory” this part. How can I solve this?? Answer It doesn’t work so. You …

Underscore in model class on Spring Boot

I doing the maintenance of this code please can someone explain what is that notation Post_ in the code below? I know Post is a model that I created, but Post_ with underscore is not in files. I searched but didnt find any information about this. Its a pre generated Spring Boot file? And if so how to create i…

Spring boot yaml property boolean not recognized

I have the following in application.yml: Following field: results in: Parameter 7 of constructor in be.cm.apps.press.perscel3.cron.CronJob required a bean of type ‘java.lang.Boolean’ that could not be found. A bit annoyed by the unexpected issue, clearly the boolean field is set to true. Note that…

Spring Boot Patient Application

an image of code for some reason I am trying to have a little API run. Everything runs fine but I have to make an addition and am confused. I have to have it so in the URL when I type “localhost:8080/api/v1/{illness}” it will display the names of the people with that illness…help. I have inc…

Condition fails in Junit5 & Mockito

I am trying to write the test case for my application and I cannot get past a condition even after providing what is expected, from what I know. Here is my test class. My implementation. The test doesn’t go past the if condition. The test does not cover the code after the condition as it turns true all …

Spring security application giving No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken

I am new to spring boot. I am trying to implement a simple spring boot security with userdetailsservice in Spring Tool Suite(STS). Below is the controller I used: And the Web security configuration code: I gave all the required dependencies in pom.xml. So, I have added below line in application.propperties fi…