Skip to main content
Filter by
Sorted by
Tagged with
1 vote
3 answers
115 views

I am doing the learning on Broadcom's Spring Academy to be up to date with the latest best practices. I bumped Spring Boot to 4.0.0 instead of the 3.0.0 on Spring Academy. But I am having some issues ...
Jeremy Lanssiers's user avatar
2 votes
2 answers
492 views

Introduction I'm currently using EnableBinding , StreamListener from Spring v2: https://www.javadoc.io/doc/org.springframework.cloud/spring-cloud-stream/2.0.0.RELEASE/org/springframework/cloud/stream/...
ThrowsError's user avatar
  • 1,749
1 vote
0 answers
194 views

I have one application.properties file located elsewhere on disk which holds the password: # c:/tmp/application.properties some.encrypted.string=ENC(KB7EvxzOXglSbOrr8rqiyjwJZGpuQgyGfg5hHJgM/...
user3258911's user avatar
0 votes
0 answers
1k views

we are trying to upgrade spring from 4.x to 5.3.x this is the dispatcher-servlet.xml file: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www....
Bharath's user avatar
  • 137
0 votes
1 answer
53 views

I was trying enable basic authentication for my endpoints in Spring 4. But it does not seem to do anything. Any idea? If I put a breakpoint, I can only see the configure method is called when the ...
Tom's user avatar
  • 671
0 votes
1 answer
414 views

struts version: 2.5.25 spring version: 4.3.26 Using: struts2-rest-plugin, struts2-spring-plugin, JUnit 4 I am looking for assistance in correcting my unit test configuration which is currently ...
Paul Zepernick's user avatar
0 votes
1 answer
467 views

I have a scenario where session is getting expired after some time of inactivity, But i need to keep Spring 4 MVC keep session alive forever. Below is my Spring Initializer class, '''public class ...
gous md's user avatar
  • 147
3 votes
5 answers
6k views

Condition evaluation depends on a value provided in data base table @Component public class XYZCondition implements Condition{ @Override public boolean matches(ConditionContext context, ...
csr's user avatar
  • 63
3 votes
1 answer
6k views

I have an existing Spring 4 API and have successfully integrated springdoc-openapi to generate the OpenAPI 3 spec in JSON/YAML and also display the Swagger UI using springdoc-openapi 1.2.29 and Spring ...
mmateyak's user avatar
2 votes
0 answers
446 views

I am using spring 4.1.x, to create a producer to put messages into AWS SQS. I created a configuration class for QueueMessagingTemplate. I get the below error during application start up. There seems ...
lamar8080's user avatar
0 votes
1 answer
494 views

I'm using Spring 4 and I create a Session using request.getSession() I've observed that a SESSION cookie is created. The Response header contains as follows: Set-Cookie: SESSION=...
user5155835's user avatar
  • 4,812
0 votes
0 answers
358 views

getting ths exception, following is dispatcher-servlet.xml and HelloController.java error.log INFO: Initializing Spring FrameworkServlet 'dispatcher' [INFO] FrameworkServlet 'dispatcher': ...
SIDDHARTH KSHIRSAGAR's user avatar
1 vote
0 answers
294 views

In a DTO, I can get a date string converted to a java.util.Date, using the com.fasterxml.jackson.annotation.JsonFormat annotation: class myDTO { @JsonFormat(pattern="MM/dd/yyyy") private ...
pointyhat's user avatar
  • 596
0 votes
1 answer
2k views

When i migrate spring 3 to spring 4, iBatis is no longer support for spring 4. After google, i have added dependency 'mybatis-2-spring' into pox.xml but extended class 'SqlMapClientDaoSupport' class ...
vishal kumar's user avatar
0 votes
1 answer
706 views

I have my hibernate entity manager factory declared in jpa.xml, hazecast configured in hazelcast.xml and I have domain model setup and I have corresponding componentContext.xml present in the domain ...
user1734698's user avatar
0 votes
1 answer
711 views

We are trying to deploy EAR(EJB3 component and web module) in Wildfly-17 server. The EJB3 components are injected to controllers with the help of Spring dependency injection. During the server ...
Yugamani's user avatar
0 votes
1 answer
126 views

I had already declared my driver in my jpa class and also the dependecy for the connector for mysql and have the define schema in my DB. but when am crating the war then message showing in logs the ...
yash's user avatar
  • 51
0 votes
1 answer
261 views

I'm trying to load static resources to thymeleaf html file. But resources aren't loaded.Does anyone knows what Am i doing wrong here.... I'm using Spring Java Config here. This is my Config class @...
Shenali Silva's user avatar
6 votes
1 answer
8k views

To make best use of the java8 stream and Spring4, I use the Stream API as follows on a JDBC resultSet that comes from Springs jsdbRestTemplate (code shortened and simplified): public <T> T ...
tkruse's user avatar
  • 10.8k
3 votes
0 answers
209 views

I need to use @ControllerAdvice for Global Exception Handling in my application. For that i done these changes in my dispatcher I am getting Exception in configuring xmlns:mvc in dispatcher. :( ...
Monika Tiwari's user avatar
1 vote
0 answers
1k views

We have a legacy application which is build using spring3 and java 7 and it was running on Jboss 6. Recently we have upgraded the jboss server from version 6 to version 7.1.3 with spring version from ...
seasagar's user avatar
  • 153
1 vote
0 answers
264 views

I am using java 8, Spring 4.3.x and Tomcat 7. Below is my code for Streaming huge data from database in the form of chunks. public ResponseEntity<StreamingResponseBody> streamRecords(...
Ankur Soni's user avatar
  • 6,068
4 votes
2 answers
5k views

I am using Spring MVC 4.3.9.RELEASE, Java 8, Tomcat 7 My code is as below, @Controller @EnableWebMvc public class StreamRecordsController { @RequestMapping(value = "/streamrecords/{elementname}"...
Ankur Soni's user avatar
  • 6,068
0 votes
2 answers
2k views

I am learning Spring Framework and DI for the first time, and trying a little test app with Spring-boot 1.2.0 (project constraint due to Spring Framework version required to be 4.1.x), I made a ...
Iñaki Guastalli's user avatar
0 votes
1 answer
153 views

I'm creating some Spring service class. One method returns com.mxgraph.view.mxGraph that loads some resources bundle in static context, in particular for current locale, but there is no Russian ...
Gordeev Pavel's user avatar
0 votes
0 answers
51 views

I have a messaging call that will process my payload which starts from MyClass. In load test i see that the first payload is getting over written by the next. All my classes are spring managed by @...
Raghuveer's user avatar
  • 3,087
0 votes
1 answer
15k views

Planning to Migrate Spring 4 project to Spring 5. I browsed about spring 5 features and it has some interesting features like Webflux , Reactive Programming ... which may increase the performance of ...
Saravanan's user avatar
0 votes
1 answer
825 views

Here is the exception Details : - java.lang.OutOfMemoryError: Java heap space at com.mysql.jdbc.Buffer.<init>(Buffer.java:57) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:2087) ...
user1061865's user avatar
1 vote
1 answer
1k views

i am trying to run a Spring AOP demo program using Spring Advice parameters. I am getting exception "java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut" while executing the ...
user3244519's user avatar
0 votes
1 answer
50 views

How can i represent the following code snippet in java, my project is using Spring4 and i need to convert the same. Any help would be much appreciated. Thanks in advance! <bean id="jndiTemplate" ...
Shivayan Mukherjee's user avatar
0 votes
1 answer
117 views

I try to create websocket connection using sockjs on client and spring4 (with java config) on backend under GlassFish 3.1.2.2 but whatever I do it always fail with the following problem: java.lang....
Rómeó Nagy's user avatar
2 votes
1 answer
3k views

I'm trying to integrate Spring 4 with Jersey 2. However this exception is thrown and deployment on Glassfish 4.1.1 fails: java.lang.AbstractMethodError: org.glassfish.jersey.server.spring....
PKey's user avatar
  • 3,871
-2 votes
1 answer
677 views

Getting NullPointerException while running a JUnit test. I have already mocked the ClientHttpResponse class. Not sure what else I am missing. Error: java.lang.NullPointerException at org....
Nital's user avatar
  • 6,114
0 votes
0 answers
137 views

I am not able to get response or error for a request which is supposed to return data of size > 15 MB .My application is deployed on localhost on Apache tomcat 8 server.I am able to get response up to ...
lalit's user avatar
  • 29
0 votes
0 answers
1k views

HashMap<String,String> containing decimal value and needs to considered as String during jackson Serialization. But we are getting error: Error: Caused by: java.lang.ClassCastException: ...
Arul's user avatar
  • 103
13 votes
2 answers
7k views

I am defining conditions that I will check to dynamically load one of the two implementations of my service interface later. @Component public class IsPolicyEnabled implements Condition { @...
WillMcavoy's user avatar
  • 1,825
0 votes
1 answer
89 views

I'm using Spring4 with tomcat, my web.xml follow: <context-param> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/classes/resources/beans.xml</...
James's user avatar
  • 1
0 votes
1 answer
58 views

I'm trying to build a little hello world WebApp prototype with Spring 4 without any xml file configuration. Than I use tomcat 7 and here is my pom: <dependencies> <dependency> ...
James's user avatar
  • 1
0 votes
1 answer
41 views

I have a situation similar to the followa: public class Shop { @NotNull String name; @NotNull String desc; } a button to show a form where I have to insert my user: <form:form method="...
Giacomo Giacomo's user avatar
2 votes
2 answers
2k views

I am using Spring 4 (not Spring Boot) in the web application. I need to run some initialization code before any of the beans in the application context would be created. I tried to create ...
briarheart's user avatar
  • 2,006
0 votes
0 answers
92 views

After a successful authentication i get redirected to a access denied page. WebSecurityContext @Configuration @EnableWebSecurity public class WebSecurityContext extends WebSecurityConfigurerAdapter {...
Noris's user avatar
  • 157
0 votes
1 answer
628 views

I am trying to remove the hashtags from my Angularjs app's URLs using the locationProvider, and it works well until I refresh a page manually. When I am refreshing page my angularjs js and css file ...
Praveen's user avatar
  • 39
0 votes
1 answer
1k views

I've got a simple @RestController. My ultimate goal is to be able to validate if an incoming @QueryParam String id is an UUID. That part works, but the exception being thrown by the ...
sbrattla's user avatar
  • 5,426
2 votes
1 answer
4k views

I've got a simple REST resource which accepts a couple of query parameters. I'd like to validate one of these parameters, and came across ConstraintValidator for this purpose. The REST resource ...
sbrattla's user avatar
  • 5,426
0 votes
1 answer
889 views

I am using Spring 4.x in which I am using @Conditional annotation to control the bean registration. I have classes defined as given below, @Controller class SchoolController{ @Autowired @...
Abhijit's user avatar
  • 185
1 vote
1 answer
229 views

I would like to utilize Hibernate Validator annotations to validate my query parameters that are passed in a request to my service. @GET @Path("/") @Consumes(MediaType.APPLICATION_JSON) @Produces(...
Ihor M.'s user avatar
  • 3,218
0 votes
0 answers
689 views

I currently use ReloadableResourceBundleMessageSource from Spring as MessageSource in order to read internationalization messages. The version of Spring I use is: 4.3.1.RELEASE <bean id="...
Sebastian D'Agostino's user avatar
0 votes
0 answers
409 views

Hibernate.cfg.xml <property name="connection.datasource">java:/comp/env/jdbc/MyStatus-process</property> web.xml <resource-ref> <description>DB Connection</...
arun steven Henry's user avatar
0 votes
2 answers
3k views

I have created an adapterImpl class that will retry a method with an objA but if it throws an exception(hardcoded to throw) it will call recover method - which will again call the method with objB. ...
user93726's user avatar
  • 843
0 votes
0 answers
24 views

I have a class like this, @Component class GenericRepositoryModel<T> { //.,.. } In my code, I have to use for a specific type, @Controller class WebController { @Autowired private ...
Kannan Ramamoorthy's user avatar

1
2 3 4 5
13