Spring POST receives object with null values

I have an AngularJS web application that looks like it is correctly sending JSON to the Tomcat server, but the server receives null values. This question didn't help because my property names are already lowercase, and this question didn't help becau...
more »

2017-12-03 13:12 (1) Answers

How do I send my Spring Boot to someone?

Hi. I'm studying Java Web and created an application using Spring Boot and Maven. The application is working fine using mvn spring-boot:run. How do I compile or build it to send it to someone? Hi. I'm studying Java Web and created an application us...
more »

2017-12-03 06:12 (2) Answers

Adding content property to serialization

Whenever I use a custom serializer in spring data rest, it adds a "content" property that wrapps the object returned, like: { "content":{ object properties... }, _links: { } } EDIT: Add configuration class @Configuration public ...
more »

2017-11-30 19:11 (1) Answers

spring boot app - beanUtils not found

In eclipse I create a new spring boot starter project. The Spring Boot Version is 1.5.9.RELEASE and the dependency I include is the spring-boot-starter-web (this is all done by the Spring Project wizard in eclipse, so likely no error there). When I r...
more »

2017-11-30 11:11 (0) Answers

Spring 4.1.9 not working with Java 8

I am using spring 4.1.9 with jdk-8. I am using eclipse IDE. My java 8 code with lambda expression Runnable uploadSheet = () -> { // My code }; compiles successfully but when I try to run the project, I receive following exception - SE...
more »

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

Configure react to be served on Spring boot app

So far, I've been writing a bunch of endpoints for my Spring boot app, with no html UI side. Now, I want to serve the HTML file and js files which contain react code. When I visit http://localhost:8443 I get: Whitelabel Error Page This application...
more »

2017-11-19 20:11 (3) Answers

Environment env.getproperty is not working

I have a problem with Environment env.getproperty, env not find local properties, but it find system properties. I dont know about this so much and I need to solve it. Please, help me. Attached my code and its configuration. Controllers.xml: <?x...
more »

2017-11-17 19:11 (1) Answers

How do I modify a spring service to produce jsonl

I have a service consumer who wants my service to produce line delimited JSONL. How can I modify the Jackson parser or provide a custom serializer so that a retuned array of objects is serialized as JSONL and not JSON. For example the following code...
more »

2017-11-17 15:11 (1) Answers

Create database script mySQL

I have dynamic web java project where I am using spring-MVC/hibernate. In my xml config file I have a bean for setting up my sessionFactory (all dependencies - jdbc url etc. for my local database). Is there a way I can send this project + database to...
more »

2017-11-12 16:11 (2) Answers

Spring Data Rest object with relations

In an attempt to avoid the use of controllers as much as possible for my relational database, I decided to make use of the Spring Boot framework with the Data REST plugin. This works fine for objects that contain primitive types and Strings, but I'm ...
more »

2017-11-10 17:11 (0) Answers