I am trying to implement multiple select search using angular and spring boot. I got the select data form frontend in key and value pair. How can i write query to get the data from table? I am getting the data like this {“groom_Bride”:”groom”,”ageFrom”:”18″,R…
Tag: spring-boot
spring-boot-2, Serving plain old jsp pages WITHOUT controller?
I’m trying to convert an old legacy application from JavaEE to spring-boot-2. How do you actually serve plain old JSP-pages WITHOUT a Controller? I’ve been googling this over and over now, and strange as it sounds, I cannot figure it out or find a simple example that actually WORKS. I just keep ge…
post data for foreign key in postman
this is my model class.There is foreign key from another table AssessmentProperties .now when iam posting the data with postman my data looks like this but my input should be looking like this can anyone say me what should i do for this? and by the way this is the controller for post method Answer Instead of …
How to pass data into spring batch ItemProcessor?
I have a CSV file that contains records of data (cases), for which I created a caseDTO object , however some of the properties of the caseDTO must be field from data included in the file name (every file must has a name with strict structure that contains some data). What i want to achieve is to pass the data
can you make a list of differents element in java without making a class for it
i need a create a list that contains in each iteration an int ,date and a note (String) so what i need is something like this : List A ={[5,12/12/2020, “note1”],[6,11/01/2021,”note2&…
why does spring throw me an exception about bad sql code?
Im working in an app that has a spring boot server. the thing is that i have a query, not auto generated one, that throws me a bad sql exception and i cant seem to find out why. Also im using MySQL as a database this is my repository code : The one with the @Query annotation throws me: Can
How to modify tomcat web.xml location per webapplication
I’ve multiple spring boot applications deployed in my tomcat server (as war files). My problem is I want to customize tomcat’s default session-timeout for some of the webapps (ie. without editing the global $CATALINA_BASE/conf/web.xml). I searched and read tomcat docs. It seems the only way I can …
Spring choose property source by a combination of profiles
I have multiple environments driven by Spring profiles, such as application-int.yml, application-dev.yml etc with similar content: application-int.yml application-dev.yml My goal is to use the following property based on both the environment name and whether the mock profile is included: ws.endpoint from appl…
@StreamListener is not visible when outside main Application class of Spring Boot. What could be the reason?
This is Spring Cloud Stream application. As i mention in the title, the StreamListener annotation works when inside the SpringBootApplication main class, but not when it resides in a different class with @Component annotation. I believe it is some sort of StreamListener visibility issue. I am publishing messa…
MQTT and SpringBoot Integration Connection Lost
I currently have an API in SpringBoot and I would like to add an MQTT client to subscribe to one or more topics. I tried several Paho,Hive clients, without success, I’m currently on the default MQTT of SpringBoot which uses Paho but I can’t get it to work even with the basic configuration. I get a…