I just have a question, in my spring boot project I use the image absolute path, but every time I changed the computer, I have to go to the project and change the image path, is there a way to automatically make that?

|
Prudhvi . 2022-06-29 11:47:08
It’s can perform all sts operations
pragya0508 2022-06-29 11:48:32
Hey i want to know how to write test case for controller class and services class plz help
ImVickkie 2022-06-29 12:11:19
pragya0508 2022-06-29 11:48:32
Hey i want to know how to write test case for controller class and services class plz help

https://howtodoinjava.com/spring-boot2/testing/rest-controller-unit-test-example/

Unit Testing a Spring Boot REST Controller – HowToDoInJavaHowToDoInJava
Learn to unit test given Spring rest controller APIs using Junit 5 and mockito. This technique can be applied to spring boot as well as spring MVC applications, both.
Agustinsoler 2022-06-29 12:31:19
Does anyone know why Could I getting an 500 exception instead of 401 when authorization is missing?
varzu here 2022-06-29 12:42:07
Can we integrate angulajs in springboot(one project) and how it works any resources please
Rajatg01 2022-06-29 13:13:32
springbootmicroservices-65432.jpg
Anyone knows why this error coming, “A child container failed during start”
Rachid Benkitou 2022-06-29 13:20:26
springbootmicroservices-65433.jpg
Hey, I hope you’re doing well,
I just have a question, in my spring boot project I use the image absolute path, but every time I changed the computer, I have to go to the project and change the image path, is there a way to automatically make that???
v_lan1337 2022-06-29 13:31:19
Rajatg01 2022-06-29 13:13:32
Anyone knows why this error coming, “A child container failed during start”

Check which component is listed after the msg Failed to start component. Also, see if the tomcat starts when you run it from terminal.

Rajatg01 2022-06-29 13:31:48
v_lan1337 2022-06-29 13:31:19
Check which component is listed after the msg Failed to start component. Also, see if the tomcat starts when you run it from terminal.

Yeah tomcat is started

Rajatg01 2022-06-29 13:34:00
v_lan1337 2022-06-29 13:31:19
Check which component is listed after the msg Failed to start component. Also, see if the tomcat starts when you run it from terminal.

Failed to start component [StandardEngine [Tomcat].StandardHost[localhost].StandardContext[]]

Crazy_devplr 2022-06-29 13:38:51
Rachid Benkitou 2022-06-29 13:20:26
Hey, I hope you’re doing well,
I just have a question, in my spring boot project I use the image absolute path, but every time I changed the computer, I have to go to the project and change the image path, is there a way to automatically make that???

You need to save that file in project resources folder and use

Rachid Benkitou 2022-06-29 13:41:49
Crazy_devplr 2022-06-29 13:38:51
You need to save that file in project resources folder and use

Ok, I will try, thank you😊😊

v_lan1337 2022-06-29 13:49:41
Rajatg01 2022-06-29 13:31:48
Yeah tomcat is started

Then it’s issue with one of the dependencies. Check your pom.xml if all of your dependent classes are list & with correct versions. Tomcat-7 is old. Plus there’s also a mention of version mismatch in the errors.

Rajatg01 2022-06-29 13:52:07
v_lan1337 2022-06-29 13:49:41
Then it’s issue with one of the dependencies. Check your pom.xml if all of your dependent classes are list & with correct versions. Tomcat-7 is old. Plus there’s also a mention of version mismatch in the errors.

Yes

Sakshi 2022-06-29 14:49:10
springbootmicroservices-65442.jpg
Reason of error ??
Tanish Agrawal 2022-06-29 15:24:29
Sakshi 2022-06-29 14:49:10
Reason of error ??

int[] a = { 100, 200, 300, 400, 500, 600 };
int count = 0;
int sum = 0;
int k = 2;
int temp;
try {
while (true) {
temp = a[count];
count ;
}
} catch (Exception ex) {
for (int i = k; i < count; i ) {
sum = a[i];
}
System.out.println(sum);
}

Ashish 2022-06-29 15:25:34
Sakshi 2022-06-29 14:49:10
Reason of error ??

i=0 okk but count is 0 okk but i < count is not okk

Tanish Agrawal 2022-06-29 15:26:52
Tanish Agrawal 2022-06-29 15:24:29
int[] a = { 100, 200, 300, 400, 500, 600 };
int count = 0;
int sum = 0;
int k = 2;
int temp;
try {
while (true) {
temp = a[count];
count ;
}
} catch (Exception ex) {
for (int i = k; i < count; i ) {
sum = a[i];
}
System.out.println(sum);
}

Sakshi please copy paste these code it is work

Crazy_devplr 2022-06-29 15:32:27
Sakshi 2022-06-29 14:49:10
Reason of error ??

While(true) will never terminate

C S 2022-06-29 16:12:20
Anyone here able to help with microservices task
Ramu😍 2022-06-29 16:15:19
Yes
Aryan Pare 2022-06-29 16:33:31
I have created 2 microservices with different databases. Now I want to extract the data of both the microservices in the third mircroservice together. Can anyone tell how to do it
Saravana Pandiyan 2022-06-29 16:39:10
Aryan Pare 2022-06-29 16:33:31
I have created 2 microservices with different databases. Now I want to extract the data of both the microservices in the third mircroservice together. Can anyone tell how to do it

In your third microservice, you can connect to both the DB and write a Repository code which reads data from both DB

spbalamurugan 2022-06-29 17:17:40
Saravana Pandiyan 2022-06-29 16:39:10
In your third microservice, you can connect to both the DB and write a Repository code which reads data from both DB

Use fient client to extract data

shubhamj988 2022-06-29 17:29:23
how to mock util instance method during mock service layer
shubhamj988 2022-06-29 17:29:36
In junit
Bakyt130600 2022-06-29 17:40:03
здравствуйте есть здесь русско язычные&?
Bakyt130600 2022-06-29 17:41:49
when we add dependency zhdbs is it the same as we download and install the driver ?
S 2022-06-29 18:16:43
Anyone working in TCS Bangalore location
S 2022-06-29 18:17:18
Please let me know if anyone working
|