Skip to content
Advertisement

convert SpEL output to long to use as an annotation argument

Currently, I can use String arguments using SpEL as follows:

JavaScript

It works fine but if I want a long constant it will not be work :

JavaScript

So, How to fix it?

Also, I cannot give Long and it accepts only long

edit :

I have gone through many similar SpEL questions but there were no applicable solutions for my case.

Advertisement

Answer

Use fixedDelayString instead:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement