In springboot no?

|
Taimooo 2022-09-04 17:36:56
Hello friends, can someone help me please:
What these methods do and what is the difference between them ?

public static double roundValue(BigDecimal amount) {
DecimalFormat round = new DecimalFormat(“#.##”);
return Double.valueOf(round.format(amount));
}

public static double roundValue(double amount) {
DecimalFormat round = new DecimalFormat(“#.##”);
return Double.valueOf(round.format(amount));
}

faisal_shopnil 2022-09-04 18:35:57
Taimooo 2022-09-04 17:36:56
Hello friends, can someone help me please:
What these methods do and what is the difference between them ?

public static double roundValue(BigDecimal amount) {
DecimalFormat round = new DecimalFormat(“#.##”);
return Double.valueOf(round.format(amount));
}

public static double roundValue(double amount) {
DecimalFormat round = new DecimalFormat(“#.##”);
return Double.valueOf(round.format(amount));
}

Difference :
1st method take a BigDecimal number as a parameter, 2nd method takr a double number as a parameter

Both method return the given value as a double in a specific format of 0.00

Taimooo 2022-09-04 18:52:38
faisal_shopnil 2022-09-04 18:35:57
Difference :
1st method take a BigDecimal number as a parameter, 2nd method takr a double number as a parameter

Both method return the given value as a double in a specific format of 0.00

Thank you faisal

Teja 2022-09-04 19:46:16
how to solve this??
Teja 2022-09-04 19:46:16
what is error?
Rajat_12345 2022-09-04 20:00:39
Use zipkin
Mitali Jain 2022-09-04 21:50:12
We need to add jar files in spring what do they do exactly
Raina Yuvan 2022-09-05 05:22:37
How to create custom exception and how to handle the custom exception… please explain detail
ElfGodd 2022-09-05 05:57:29
I was coding in Eclipse all project was perfect and suddenly stopped working, i got 1 commit back also when is was more than perfect and still not working
ElfGodd 2022-09-05 06:20:49
springbootmicroservices-77223.jpg

ElfGodd 2022-09-05 06:24:09
Will IntelliJ work better for me, if i am using Linux? than Eclipse? for Java?
Debiprasad Dash 2022-09-05 06:24:38
ElfGodd 2022-09-05 06:24:09
Will IntelliJ work better for me, if i am using Linux? than Eclipse? for Java?

Intellij ultimate is best but it is paid

Debiprasad Dash 2022-09-05 06:26:18
ElfGodd 2022-09-05 06:24:09
Will IntelliJ work better for me, if i am using Linux? than Eclipse? for Java?

In community edition there is no facility to develop springboot application

# 2022-09-05 08:11:13
Hi can anyone help me in doing ebanking project in spring boot
# 2022-09-05 08:12:16
# 2022-09-05 08:11:13
Hi can anyone help me in doing ebanking project in spring boot

Create Add, modify customer details & then fetch transactions

These need to be there in project

# 2022-09-05 08:13:34
# 2022-09-05 08:12:16
Create Add, modify customer details & then fetch transactions

These need to be there in project

Or can anyone send code for this if u have it done previously

# 2022-09-05 08:18:10
# 2022-09-05 08:13:34
Or can anyone send code for this if u have it done previously

Iam in immediate need of it can anyone reply asap

Sakshi 2022-09-05 08:22:39
Zeref 2022-09-04 17:08:22
Just to have a rollback I mean if a method executes and have exception in between the value will be the same as before executing the method

Thank u

Sakshi 2022-09-05 08:24:20
faisal_shopnil 2022-09-04 17:26:16
Suppose, a method named “updateOrder” save/upate 3 informations on 3 different tables.

These all db operations may occur in “updateOrder” method, or other methods.

If there is a exception on saving the 3 oprations, and u want to rollback all the 3 operations, u can use @Transactional on parent method, (updatsOrder)

In springboot no ? Because in spring MVC till I write the transactionmanagment it’s not working..and where we have to write @Transaction in @service , @Repositor ??

smartcoder69 2022-09-05 08:40:27
Sakshi 2022-09-05 08:24:20
In springboot no ? Because in spring MVC till I write the transactionmanagment it’s not working..and where we have to write @Transaction in @service , @Repositor ??

Over the method you need to write you need to import spring boot jpa depednecy

smartcoder69 2022-09-05 08:40:58
refer this https://www.baeldung.com/transaction-configuration-with-jpa-and-spring
Gouriiiiiiiiii 2022-09-05 08:47:45
springbootmicroservices-77248.jpg
Anyone has any idea about this????
Munna 2022-09-05 09:16:41
I need offline support on java and spring boot. Please msg me if available.
Sakshi 2022-09-05 09:19:32
smartcoder69 2022-09-05 08:40:27
Over the method you need to write you need to import spring boot jpa depednecy

Yes got that thank u buddy

nick2322 2022-09-05 09:43:05
Can anyone guide me..where to start from..
nick2322 2022-09-05 09:43:16
For Spring boot…
nick2322 2022-09-05 09:43:46
I have downloaded the sts
nick2322 2022-09-05 09:43:56
Where can I learn spring boot…better..
pravdograd 2022-09-05 10:00:15
nick2322 2022-09-05 09:43:05
Can anyone guide me..where to start from..

better to take courses brother

Debiprasad Dash 2022-09-05 10:01:48
nick2322 2022-09-05 09:43:56
Where can I learn spring boot…better..

You can learn from youtube, Google
But the better option is take a course u will get the right path

|