Quantcast
Channel: User ging - Stack Overflow
Browsing latest articles
Browse All 37 View Live

Comment by ging on Spring-Data JPARepository save method creates a duplicate...

Yes. I did drop the table and created the table again. But no luck @MartinBG

View Article



Comment by ging on Spring boot application throws error in environment :...

@RostyslavBarmakov but if that is the case how is it working in my local? Any idea on this please?

View Article

Comment by ging on Spring boot application filter response body

@SimonMartinelli updated the question. I mean to say concatenate together in the response. Any suggestions on this please?

View Article

Comment by ging on Spring boot application filter response body

Actually i just tried MultiReadHttpServletRequest (Updated in question). But still i am getting the original response. But not the updated response.

View Article

Comment by ging on Record not persisted into R2DB using Spring boot webflux...

That was it. But still trying to understand why .save didnt throw any error if the record was not persisted. Any docs that can explain this? I am fairly new to webflux and trying to gain some knowledge...

View Article


Comment by ging on Asynchronous call using Spring webclient and just log the...

Thank you. But what’s the advantage of using retrieve here over exchange? @Harry

View Article

Comment by ging on Error with Spring security framework 2.6.4...

I think this should be upvoted too. Definitely as @Andy Wilkinson suggested we have to upgrade the version, but upgrading the core version should be a good alternative without playing worh version...

View Article

Comment by ging on How is spring reactive asynchronous?

Thanks for the response. Will go over the links suggested.

View Article


Comment by ging on Spring cloud stream kafka timestamp

So in short to summarize, kafka_receivedTimestamp is the publisher set time?What if publisher does not set any time? And Does it depend in kafka_timestampType at all? @Gary Russel

View Article


Comment by ging on SQL: Inner join vs seperate Query

@James yeah i agree but in general i know inner join return all common elements. But what i am trying to understand from this post is, on each row of employee table will it try to search the...

View Article

Create an array from input array in PostgreSQL

I am working on creating a PostgreSQL function. I have a situation where I receive an array as input and I want to use that array and get some other column for each element from that array and convert...

View Article

URL encoding issue for path param which has '/'

I have an issue while encoding an URL. My url might contain a path param which can include a slash "/". I need to send this path param to an external API. This is always encrypted+Encoded. But i have...

View Article

EclEmma(Jacocco) shows line not covered even if the line is executed

I am trying improve line coverage for my code. A line gets executed where i am calling a method which in turn will throw an exception. But line coverage shows red color meaning the line was not...

View Article


Increase line coverage for a method in Junit(Jacocco)

I am trying to increase the line coverage for my code. I am calling a static method from a non static method. As part of unit test i am trying to cover the test case for below code:My code:1 public...

View Article

How do we do junit for java8 Function,Predicate,Bifunction

I am trying to migrate my application to java 8 from java 7 and trying to make use of the conciseness provided by using java 8 lambdas. but unit testing became a nightmare for me as I cannot refer...

View Article


Convert List to Map in java 8 by appending values for a key if exists

I am trying to convert a List to map. if the key exists i just want to combine two values and separate them by "," and assign it to the key. If the key doesn't exist, i just want to assign directly as...

View Article

Convert a List toList in java 8

I am trying to convert a List of Object to another list fo Object. But i am trying to chose the best way using with or without streams by java8 way with more readability.Lets say i have a list like...

View Article


Java8 Stream with Multiple List of Objects

I have two List where i want to perform some operations based on the properties of the Object1 and Object2.Object1: public class Object1 { private String prop1; private String prop2;}Object2: public...

View Article

Java : use Streams to convert List to another List

I have the below issue. I am familiar with traditional way to doing the below using java 7 but trying to accomplish this using java8 streams or forEach for better readability and less lines of...

View Article

Spring @Retryable with configurable delay based on client

I am developing a Spring boot application. From my application we are calling an external RestService and want to retry if RestCall fails for any reason.I know that @Retryable within spring should take...

View Article

Answer by ging for Spring redis return 500 stackoverflow error

The problem here is, I am using the hiberante entity Object, (which is "MyObject" from the Post). Created a new Object and it worked Fine.

View Article


Spring redis return 500 stackoverflow error

I am trying to save some data to Redis in spring boot application.I am getting stackoverflow error while trying to insert the data into Redis.I know there is some repetitive process going on here, but...

View Article


Create a mapping table with hibernate and retrieve values by columns

i am working on Spring Data JPA with Hibernate. I want to create a mapping table using hibernate automatically and want to retrieve the values based on the id's of each individual...

View Article

Map a table created by hibernate in other table

i am working on Spring Data JPA with Hibernate. I want to create a mapping table using hibernate automatically and want to retrieve the values based on the id's of each individual...

View Article

Spring-Data JPARepository save method creates a duplicate Record

I am using spring-data and hibernate for creating tables and inserting Data. From different threads i found that save method from JPARepository (From CRUDRepository) will only update the record if the...

View Article


Add a Foreign key relation to existing table using hibernate in spring boot...

I am using hibernate to creating and updating tables. Now i am trying to add relation to a new table from an existing table and i am receiving an...

View Article

Record not persisted into R2DB using Spring boot webflux reactive

I am trying to build an application using reactive. Initially i used to get proper response but after modifying the code, the record is not persisted into Database, but when I changed the logic to...

View Article

Spring cloud open Feign Not ignoring null Values while Encoding

I am working on a Spring boot application. We are using Spring cloud open Feign for making rest calls. We are using the default GsonEncoder(), but for some reason gson is not excluding the null...

View Article

Spring boot requestcontextholder with completableFuture.supplyAsync

I am developing an Api using spring boot. I need to call a dependent service asynchronously.I have an interceptor which uses RequestContextHolder from spring to get the httpservletrequest. But as the...

View Article



How is spring reactive asynchronous?

I am new to reactive programming. I know reactive programming is asynchronous and non blocking.I am trying to understand how is reactive asynchronous.From my understanding, in contrast to thread per...

View Article

Answer by ging for AWS StepFucntion Next State from a dynamic variable?

Just in case if anyone is still looking for an answer, this is not possible at this stage. But may be in future according to aws support.

View Article

AWS StepFucntion Next State from a dynamic variable?

I am trying to go to a specific state directly or I want to have the flexibility to start from beginning of the workflow. I am not able to pass the next state as dynamic variable. How can I achieve...

View Article

Kubernetes pods config map detaching file

I am deploying my application using Kubernetes. I need configuration from config maps and i am providing via config map generator as below:configMapGenerator:- name: example files: - app.propertiesBut...

View Article


Spring cloud stream kafka timestamp

I am using spring cloud streams for consuming kafka. I need to get the time the event has been published to the queue from the publisher(publisher time not the broker ingestion time)I can see below...

View Article

Liquibase: Keep changes from script but remove the changelog in changelog table

I am using liquibase for applying database changes. I have below changeset and below are the entries in changelog:Changeset:<changeSet author="me" id="1"><addColumn...

View Article

Exception while running in Junit

I am trying to do unit test for JSONException. Below it's the code:public void testException(JSONObject jsonObj){ try{ String test = jsonObj.getString("test"); }catch(JSONException e){ }}But in the...

View Article

Browsing latest articles
Browse All 37 View Live




Latest Images