Gradle - Multiple SLF4J bindings

I am trying to use Strom with Spring Boot. I can't figure the problem out. Could you help me please Here is my Gradle dependencies buildscript { ext { springBootVersion = '1.5.2.RELEASE' } repositories { mavenCentral() ...
more »

2017-03-19 10:03 (0) Answers

Spring Boot + Gradle JVM memory settings

I'm trying to run my Spring Boot application in a machine with very limited resources (512M memory), so I need to configure JVM memory settings (Xmx, MaxPermSize etc) to limit consumption and avoid OOM crashes. I run the app from the command line us...
more »

2017-03-17 17:03 (1) Answers

Using shared database scripts in flyway

I have a number of projects written in Groovy using Spring-Boot / Gradle. All of these applications do a similar job for a different client but share a significant amount of functionality. In order to avoid code duplication I have separated out the...
more »

2017-03-15 09:03 (1) Answers

Spring Boot Actuator Endpoint Override

I have been prototyping with Spring boot where I added dependency on spring-boot-starter-actuator and spring-boot-starter-data-rest and named my testing REST endpoint to /info. Application ran without any errors however my endpoint couldn't be called...
more »

2017-03-15 08:03 (2) Answers

How to add a library using gradle on IntelliJ?

I want to use Vmeo's API on my Spring Boot application. For that, I visited the the Vimeo API authentication page, which requires this this OAuth library for authentication. I found their documentation quite confusing for a newbie. I've have downlo...
more »

2017-03-10 07:03 (1) Answers

Log4j doesn't save all logs to file

I have a problem. I want to save ALL logs to file. When I'm runing my spring-boot application, I have this in console: ... 2017-03-09 20:12:26.985 INFO 379180 --- [ restartedMain] o.e.jetty.ContextHandler.application : Initializing Spring Fram...
more »

2017-03-09 20:03 (1) Answers

add role to user RESTful [Spring-Rest]

I have to add a User one or multiple Role(s) in my Application. Currently i add one Role to a User at a time with this method: @RequestMapping(value = "users/{id}/{roleId}", method = RequestMethod.POST) public User assignRole(@P...
more »

2017-03-09 16:03 (1) Answers

No property search found for type A

I'm implementing versioning, and I have a couple classes that use it, so now I want a repository to find and retrieve this classes Entities: Class Versioned{ String version; string createdDate; } Class A extends Versioned{ String id; S...
more »

2017-03-07 18:03 (0) Answers

Post method @RequestBody Object parameters null

I am trying to post a POST request from postman and the json in the body is not converted into java object in the controller. @RequestMapping(method = RequestMethod.POST , value="/register") public void saveUser(@RequestBody User user){ //user o...
more »

2017-03-05 22:03 (1) Answers