Check out our website: http://www.telusko.com Follow Telusko on Twitter: https://twitter.com/navinreddy20 Follow on Facebook: Telusko …
Original source
Check out our website: http://www.telusko.com Follow Telusko on Twitter: https://twitter.com/navinreddy20 Follow on Facebook: Telusko …
Original source
11 responses to “#12 Restful Web Services Tutorial | Mysql Repository part 2”
Pot method not working.
Those who are facing Exception while the java code interacting with MySQl DB i.e "Could not create connection to database server. Attempted reconnect 3 times. Giving up." or any similar kind of error. Just Make sure to close the connection of Connection, Statement also Resultset but not mandatory of the respective webservice methods:
EX-
finally {
if (rs != null) {
try {
rs.close();
} catch (SQLException e) { /* ignored */}
}
if (st != null) {
try {
st.close();
} catch (SQLException e) { /* ignored */}
}
if (con != null) {
try {
con.close();
} catch (SQLException e) { /* ignored */}
}
}
Hi Navin, Your videos are awesome but i need one help with this content. While running the app i am getting one error like
Com.mysql.jdbc.exception.jdbc4.MySqlNonTransientConnectionException:could not create connection to database server.
I checked and googled manything but not sure hoo to solve it , my unmae and pwd in code is also correct but not sure what to check. Need your help here , Thanks
hii sir..i'm getting error java.sql.SQLException: No value specified for parameter 1 while using this code. and data is not getting inserted into DB..Plz help
i come here null pointer exception data come on consol but not go in db
Thanks for sharing this important this topic with us.
I followed each and every step as you shown in this project but right now i am getting an error..
error is :- java.sql.SQLException: Fail to convert to internal representation
i am using oracle database and all dependencies is installed on maven…
please help me to resolve this issue.
hoping for best.
Thanks.
how can we download your demo project??
How to use Angularjs for this stuff..
Please response
How to add cross origin here
Here you added id statically by postman..
But I need to add name and I want Id by automatically.. This is the real thing.. how to do this..
Please inform me
Thank you very much sir, works like a charm !