You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@akash-coded
my projects run successfully also connected with database successfully.
but when to hit request in postman its shows nothing no error but its not show a data in database when hit a request http://localhost:8082/api/worker/all
*Runs and Connect to database Successfully image
*while hitting a request a in postman getting an exception
of "Exception occurred while fetching all worker records!
java.sql.SQLDataException: Cannot convert string '2014-02-20 09:00:00' to java.sql.Timestamp value"
postman request image while hitting or send request
*Mydatabase is also okay containing some workers records in it
IMAGE OF DB
CODE
Base package.
packagecom.spring.boot.mysql.connector.demo;
importorg.springframework.boot.SpringApplication;
importorg.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplicationpublicclassSpringBootMysqlConnectorNTierApp {
publicstaticvoidmain(String[] args) {
SpringApplication.run(SpringBootMysqlConnectorNTierApp.class, args);
System.out.println("Spring boot n-tier app with JDBC connectivity and MySQL works!");
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
@akash-coded
my projects run successfully also connected with database successfully.
but when to hit request in postman its shows nothing no error but its not show a data in database when hit a request http://localhost:8082/api/worker/all
*Runs and Connect to database Successfully image
*while hitting a request a in postman getting an exception
of "Exception occurred while fetching all worker records!
java.sql.SQLDataException: Cannot convert string '2014-02-20 09:00:00' to java.sql.Timestamp value"
postman request image while hitting or send request
*Mydatabase is also okay containing some workers records in it
IMAGE OF DB
CODE
Base package.
com.spring.boot.mysql.connector.demo.utils;
com.spring.boot.mysql.connector.demo.model
com.spring.boot.mysql.connector.demo.dao
com.spring.boot.mysql.connector.demo.repository
com.spring.boot.mysql.connector.demo.service
com.spring.boot.mysql.connector.demo.controller
application.properties
GITHUB LINK FOR PROJECT
All reactions