Actually i m making a online shopping application basic one with microservices i have created login-customer-product-order module in backend now want to create the front end for the same using react anyone knows?

|
DarK_pheonixx 2022-07-07 20:33:49
Without UI
DarK_pheonixx 2022-07-07 20:33:51
Html
DarK_pheonixx 2022-07-07 20:33:56
Pages
DarK_pheonixx 2022-07-07 20:34:05
I can pay
AnkitSaini4466 2022-07-07 20:39:54
spring_moments 2022-07-07 20:27:22
Sure , you can reach out in dm if it is still there

springbootmicroservices-67023.jpg

AnkitSaini4466 2022-07-07 20:39:54
spring_moments 2022-07-07 20:27:22
Sure , you can reach out in dm if it is still there

springbootmicroservices-67022.jpg

AnkitSaini4466 2022-07-07 20:43:00
Ramya 2022-07-07 20:30:00
Can u try once creating autowired for service impl class in controller and then call the method in that which addcollege .. if this does not work then debug will help ..

still not working :/

Dustin 2022-07-07 20:43:42
Try to give List<College> and return collegeList
AnkitSaini4466 2022-07-07 20:47:01
Dustin 2022-07-07 20:43:42
Try to give List<College> and return collegeList

tried and not working

AnkitSaini4466 2022-07-07 20:47:30
i can send my code in zip file here if anyone try to do it by urself
spring_moments 2022-07-07 20:47:55
AnkitSaini4466 2022-07-07 20:39:54

Ok , now what is the point of declaring a list of college and adding an element to it which ideally should throw an error anyhow when in real you are returning the recieved arguments in your service impl ?

AnkitSaini4466 2022-07-07 20:51:24
i used list so i can add multiple colleges. but that’s not necessary. i can add just only college details
AnkitSaini4466 2022-07-07 20:51:45
see this is my project
Chitra Joshi 2022-07-07 21:30:57
Actually i m making a online shopping application basic one with microservices i have created login-customer-product-order module in backend now want to create the front end for the same using react anyone knows?
Kiran 2022-07-07 21:36:22
Chitra Joshi 2022-07-07 21:30:57
Actually i m making a online shopping application basic one with microservices i have created login-customer-product-order module in backend now want to create the front end for the same using react anyone knows?

Yes what help you need?

dontwikeit 2022-07-07 23:19:12
Hey can anyone help my i just pushed a project on github and now its showing compare and pull request button not my folder
dontwikeit 2022-07-07 23:19:35
springbootmicroservices-67045.jpg

BendabizAdam 2022-07-08 00:06:53
I guess u either don’t own the repo completely, or u just tryin to merge from different branch
dontwikeit 2022-07-08 00:07:25
Ya i made 2 different branches
AlwiYayayayay 2022-07-08 02:56:14
i am create an throwing exception, but it still excecute the next code
anyone know how to stop it when it’s throwing an error?
AlwiYayayayay 2022-07-08 02:57:33
springbootmicroservices-67054.jpg
it’s my catch, and it still excecute the next method
roodrigues1 2022-07-08 02:59:03
AlwiYayayayay 2022-07-08 02:57:33
it’s my catch, and it still excecute the next method

You should throw an exception in the try block.

AlwiYayayayay 2022-07-08 03:00:30
yes it is,

try {
(your code

} catch (Exception e){
String message = e.getMessage();
Log.error(“ERROR -> Failed to search data, ” message);
throw new ServiceFaultException(Fault.DB_FAULT);
}

roodrigues1 2022-07-08 03:00:32
Or change the “Exception e’, which gets any exception to a more specific exception, so that this catch block does not get the ServiceFaultExceprion
AlwiYayayayay 2022-07-08 03:00:35
konda like this
AlwiYayayayay 2022-07-08 03:02:22
roodrigues1 2022-07-08 03:00:32
Or change the “Exception e’, which gets any exception to a more specific exception, so that this catch block does not get the ServiceFaultExceprion

serviceFaultException is the part of exception

roodrigues1 2022-07-08 03:05:33
catch (Exception e){
String message = e.getMessage();
Log.error(“ERROR -> Failed to search data, ” message);
throw new ServiceFaultException(Fault.DB_FAULT);
}
This gets any exception, that is why it is getting the ServiceFaultException and not stopping the code.

Imagine you expect to get a SQLException in the try part, then should change it to:

try {
(your code

} catch (SQLException e){
String message = e.getMessage();
Log.error(“ERROR -> Failed to search data, ” message);
throw new ServiceFaultException(Fault.DB_FAULT);
}

roodrigues1 2022-07-08 03:07:48
As SQLException is more expecific, the code will break as it cannot catch the ServiceFaultException
AlwiYayayayay 2022-07-08 03:12:51
roodrigues1 2022-07-08 03:07:48
As SQLException is more expecific, the code will break as it cannot catch the ServiceFaultException

wow it’s working 😭
thanks a lot bro

AlwiYayayayay 2022-07-08 03:14:02
you make my day 🏝🏞
it’s been a week I try to figure it out
|