Why @Value in SpringBoot, doesnt add the data to the variable
I’m trying to add some data to my BDAdaptor class through the application.properties, but i don’t know why but the data doesnt add to my variables and I get an null variables that gives me an error that says the variable “dbName” is null.
unable to save the data in h2 database while monitoring the external api’s but result is getting in console
there are two spring boot projects, one is monitoring project and other is user project, so in monitoring project i have used inceptor to monitor in user api’s response time and api endpoint etc and i am able to see the response in console with system.out.println but it is not saving into h2 database, while if i hit the get endpoint in monitoring project , it is monitoring those api’s and saving in h2 database but not saving the user project api’s endpoints.
Java Spring boot: : Not a managed type error (very new to spring)
I am extremely new to Spring and still learning core concepts, so I will be very grateful and appreciate if I get detailed answer. Basically I’m creating a webapp serving somewhat like a REST catalog of employees stored in embedded database.
I’m trying to implement endpoints serving employees as JSON representations of classes.
First I’m trying to implement endpoint /employees
which lists all employees.
I get an error: Not a managed type: class springemployeecatalog.domain.Employee
As I understood processes in this application should be the following: