Jackson's Access.WRITE_ONLY during test null

I'm currently playing around with Jackson's de/serialization features and I encountered a problem, I don't know how to solve. During my test the @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) annotation is ignored and it only shows null. How...
more »

2017-08-14 19:08 (0) Answers

Spring REST Repository based on User Data

I am coding an app where the user works into a "Business activity". So every time a new user registers himself a new Business activity is created (or the user can join an active Business activity). In this app there are various entities, let's take ...
more »

2017-08-10 19:08 (1) Answers

Gradle jar set classpath correctly

I have gradle springboot configuration with such bootRun task: bootRun { systemProperty 'spring.profiles.active', 'dev' dependsOn pathingJar doFirst { classpath = files("$buildDir/classes/main", "$buildDir/resourcesPart", pathing...
more »

2017-08-10 16:08 (0) Answers

2 @RestControllers with different configurations

Is it possible to have two different @RestControllers that use different MappingJackson2HttpMessageConverter in Springboot ? ... or is the MappingJackson2HttpMessageConverter common for all @RestController in a spring boot application ? Basically, t...
more »

2017-08-09 21:08 (1) Answers

Spring Boot properties usage in Apache Camel route

Is this possible to use Spring Boot properties in Apache Camel route? @Value is working fine but is this possible to directly place in place holders of expressions. Update: I know PropertiesComponent but which will be one more configuration apart fr...
more »

2017-08-08 13:08 (3) Answers

Spring Security with custom session timeout

I need an option to set session timeout from GUI. Currently we can change session timeout globally using configuration server.session.timeout=120 server.session.cookie.max-age=120 server.session.timeout=120` Also we can set session timeout for eac...
more »

2017-08-08 11:08 (3) Answers

Facebook Account-Kit + React.js + Spring boot

I'm starting a new project with Spring boot as backend and React.js as frontent. Right now I'm struggling with Login/Authentication issue. I would like to provide Account-Kit from facebook but have few queries. One of them is from where should I crea...
more »

2017-08-04 23:08 (1) Answers

Authorization code grant

I'm working on a REST API, that listens on localhost and I want to include Spring Security. Password grant and client credentials grant works perfectly and I can go check secured data from /smarthouse and /smarthouse2. Although, when I try to use a...
more »

2017-08-04 16:08 (1) Answers

Spring Boot Social Login and Local OAuth2-Server

I'm currently working on a Spring Boot-Application with OAuth2-Authentication. I have a local OAuth2-Server where I receive a token when posting username and password of the local database against in my case http://localhost:8080/v1/oauth/token using...
more »

2017-08-03 14:08 (0) Answers

Spring JPA Data with REST Log

I have used this tutorial Accessing JPA Data with REST to create a simple RESTful Webservice that access some data from a database. It works great. I love how simple it is and I understand more or less how it works. I have been asked, however, to ad...
more »

2017-08-01 18:08 (1) Answers

Header location does not redirect

I have a controller @RestController public class MessageRestController { @PostMapping(value = "/sendMessage") public ResponseEntity<?> sendMessage( @RequestParam String username, UriComponentsBuilder builder ...
more »

2017-07-30 08:07 (2) Answers

Did not find handler method with JAX-RS

I have a resource JAX-RS @Path("/profile") public class ProfileResource { @GET @Path(value = "/{username}") public Response getProfile( @PathParam("username") String username, @Context UriInfo uriInfo ) throw...
more »

2017-07-29 20:07 (2) Answers