spring Questions
2
Solved
I am sending an array of JSON by converting it to toString() in Kafka Producer using Spring Boot app, but I am getting following error in Consumer:
org.springframework.kafka.listener.ListenerExe...
Headmaster asked 16/9, 2019 at 8:59
3
Solved
Typically, a maven built jar artifact will have it's pom included under META-INF. I recently noticed that the Spring jars don't have this. So, that causes me to wonder about the purpose of that pom...
2
How can i use spring JPA Specification for where condition as below:
Where cond1 and (cond2 or cond3)
AND
Where (cond1 and cond2) or cond3.
Specification code is as below:
Specification<Do...
Countermarch asked 15/3, 2019 at 10:1
5
I use Spring-Boot and want to connect it to Hive by spring-data-hadoop 2.3.0.M1-hdp23. The problem is that my application doesn't start if I add hive-jdbc to my pom.xml. The errorlog (partly) is:
...
Forehand asked 11/8, 2015 at 13:18
3
In Spring MVC, I had a @UniqueEmail custom hibernate validator (to check for uniqueness of email when signup), which looked as below:
public class UniqueEmailValidator
implements ConstraintValidat...
Orobanchaceous asked 12/7, 2018 at 8:9
8
I want to show some metrics using micrometer prometheus in combination with the spring-boot-actuator. My project is totally based on spring-boot and has the actuator feature enabled and mapped on t...
Hudson asked 29/11, 2021 at 10:57
1
I’m looking for a way to find the HTTP version of incoming request in spring webflux netty server
I cannot find any method in ServerWebExchange to get this information.
Spring servlet has some impl...
Bibby asked 11/3, 2021 at 4:11
2
I have a scenario in an implementation of spring cloud gateway (Just for illustration call that service custom api gateway). In this 'Custom API Gateway' I want to define a route, filters, predica...
4
After upgrading my code from Java 17 and Spring-boot 3.1.3 to Java 21 and String-boot 3.2.0, I've started to see errors like the ones below, when calling the REST APIs:
UPDATE: After running some m...
Dyslexia asked 10/12, 2023 at 18:34
2
Solved
Currently using Spring Boot 3.1 with the reactive WebClient configured like this:
@Configuration
public class MyConfig {
@Bean
WebClient webClient() {
ExchangeStrategies strategies = ExchangeSt...
Sushi asked 29/1 at 9:39
2
I have a simple Spring Boot API project that runs well when I execute a bootable jar file on my local machine or a docker image on Google Kubernetes Engine but emits errors when using docker run on...
Arrowood asked 17/5, 2021 at 6:54
4
I am writing a test case to test my Step in spring batch. Below is my configuration
@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = {BatchTemplateConfig.class,
CustomerItemWrite...
Clapp asked 2/3, 2023 at 11:53
3
I have a Spring MVC project. I wrote a code something like
@Controller
@RequestMapping("CallBack")
@WebService(name = "NotificationToCP", targetNamespace = "http://SubscriptionEngine.ibm.com")
pub...
Middlebrooks asked 17/6, 2013 at 2:8
3
Now, my understanding, in general, is that @RequestMapping methods need to be public. Can they also be private? If so when would we use this?
The reason why I am asking this is that I noticed that...
Ambur asked 28/5, 2018 at 9:49
5
I am trying to implement a JsonView to selectively serialize fields from an entity but the json that is serialized has empty objects with no fields. Below is my code:
ViewClass:
public class Audi...
2
Solved
I am working on a Spring boot application that uses Spring JPA with PostgreSQL. I am using @SpringBootTest(classes = <my package>.Application.class) to initialize my unit test for a controlle...
Papyrology asked 28/1, 2017 at 23:8
4
Solved
I'm playing around with Spring Boot 2.0.0M2, trying to create a CLI application, not a web one. My problem is that even including
compile 'org.springframework.boot:spring-boot-starter'
compile ...
Cheeky asked 28/6, 2017 at 16:14
4
Full error log:
2019-09-20 08:35:37.860 INFO 1 --- [nio-8081-exec-1]
o.a.c.c.C.[Tomcat-1].[localhost].[/] : Initializing Spring
DispatcherServlet 'dispatcherServlet'
2019-09-20 08:47:29.726...
3
Solved
my EventListener annotation don't receive any Spring Event. Here is my code:
@Component
public class ProxyConfig {
public ProxyConfig() {
System.out.println("I can see this in the console");
}...
Frontolysis asked 20/7, 2016 at 17:51
3
I have a whole bunch of Feign clients that uses a shared configuration(MyFeignConfiguration.class):
@FeignClient(name = "clientA", url = "http://serviceA.com", fallbackFactory =...
Integer asked 24/1, 2022 at 22:50
3
I want to implement 2 Endpoints in my REST API:
@PostMapping("/example")
public ObjectResponse postObject(@RequestBody Example example){... //Add new Example to DB}
@PutMapping("/ex...
4
Solved
New Spring Boot added exemplars support:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.2-Release-Notes#broader-exemplar-support-in-micrometer-112
After upgrading to Spring Boot ...
Ephesus asked 1/12, 2023 at 16:3
5
I'm trying to setup ehcache in my Spring boot application. I have the following ehcache.xml and configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns...
Garate asked 24/7, 2023 at 1:12
3
I am using Gradle 8.5 and am specifying...
org.gradle.java.home=/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
...in my gradle.properties file.
Whenever I introduce a new JAR (for ...
Sortie asked 10/2 at 20:18
4
Solved
I have a file uploading api which was working perfectly fine under the spring boot version 2.1.13. After upgrading the version to 2.5.2, it started to throw an exception. Looking at the changelogs,...
Marilynnmarimba asked 13/8, 2021 at 1:49
1 Next >
© 2022 - 2024 — McMap. All rights reserved.