Skip to content

Tag: spring-boot

How to specify array ([]) type in Swagger

Hi I am trying to autogenerate a class using swagger plugin. One property of this class has to be array, but when I write type: “array” always create a List. This is part of my “yml” file: And this is the property that create: Answer In Java, an array has a fixed length. This is differ…

Trying to send a message to a queue on weblogic

I have a spring boot application that is deployed on a WebLogic server, on that server there is a JmsModule defined that I need to use to send messages. I have the following as my sending class: The queue has a JNDI name and is retrieved via spring properties, it’s defined as: When starting the applicat…

How to fetch data from http response entity?

I am using SpringBoot to fetch access Token from my client. I could not separate the Access Token from the responseEntity. Is there a way to Fetch the AccessToken data alone? Here is the code: public ResponseEntity generate_Access_token() { } } The response: Answer Make your life easier, not harder – us…

copy file to multiple folders with Camel SFTP

I have a situation where I pull a file from a folder via a Camel SFTP route. There are 3 other Camel routes which need to process the same file which I am pulling… the other routes monitor the same SFTP server. Currently, we are thinking that we should make that file which I pull, available to the 3 oth…