Skip to content

Tag: rest

auto changing data with Hibernate

I have problem with Hibernate. I have next method: This method should assign user on task and send message to kafka consumer with TaskBeforeUpdate and TaskAfterUpdate. But I have problem when I try to assign user, my BeforeUpdateTask change all his fields to TaskAfterUpdate. And this dont work, but i dont kno…

Spring boot filter is ignored

I m trying to create a filter, but it is ignored Did I forget to do smth? Answer The problem was in the absent of pom dependency Instead the Filter was loaded from some java library and therefor compilation was successful (can be removed in module settings)

How to load json data in java?

I’m quite new to API testing, I am wondering how to best and simple load some body? I created simple pojo classes, but i am having problems with nested json. ex: Then, in classes I used: and then in test class I am trying to use it, but have no idea how. But I have no idea how to declare

spring boot REST POST method doesn’t work

I want to get the streamName parameter, which is generated when executing one method in the program where I made HTTPRequest and in response I want to get the generated hex string. I couldn’t find what is missing. This is my code in spring boot: PostResponse class: method on another program where i make…