PHP Rest client for JHipster API with session auth

I have developed a system using Jhipster and its technologies. I'm trying now to create a REST client in PHP to connect to the API generated by Jhipster, but I could not authenticate. I've tried with php_curl, guzzle and I always get 401. Please if ...
more »

2017-01-15 06:01 (1) Answers

Spring Profile values getting mixed

I'm using Spring Boot 1.4.3.RELEASE and gradle 2.13 for developing an api. On local environment, 'local' profile is working perfectly, but I'm getting issue while deploying code in Linux/Unix server. Here is my application.yml with two profiles : de...
more »

2017-01-14 03:01 (3) Answers

Synchronize asynchronous communication

I have a REST service which receives some data and check the data through an ansynchronous IBM MQ request. REST controller: @RestController @RequestMapping("/request") public class RequestController { @RequestMapping(method = RequestMethod.POS...
more »

2017-01-06 15:01 (2) Answers

How to manage two sets of properties at runtime?

I'm building a web service that needs to switch between two sets of properties depending on the request URL coming in. I'm not sure which is the best method of handling this. I've got a Spring Boot app that has an yaml properties file. Inside the pr...
more »

2017-01-05 16:01 (3) Answers

cache data from database on application startup

I am trying to build a cache for a web application, below is the above code which I have so far. This cache has to be loaded on application startup. @Service public class CacheBuilder { private MultiKeyMap cache = new MultiKeyMap(); @Auto...
more »

2017-01-05 01:01 (0) Answers

Gradle - Exclude Nested Transitive Dependencies

The below custom boot dependency has a number of transitive dependencies. Few of these transitive dependencies have reference to org.hibernate group. I updated the below in my build.gradle file to exclude the dependency. However it doesn't seem to be...
more »

2017-01-03 19:01 (2) Answers

spring-boot hibernate turn off validation

I have come to the same problem as in How to disable Hibernate validation in a Spring Boot project and done the same. In application.yml I have: jsf: PROJECT_STAGE: Development primefaces: theme: overcast logging: level: root: debug ...
more »

2016-12-31 00:12 (0) Answers

Spring boot mvc async execution

I'm trying to execute simplest async REST controller using java.util.concurrent.Callable: @RequestMapping("/AsyncRequest") public Callable asyncRequest() { return () -> { Thread.sleep(3000); return "reply"; }; } Then I r...
more »

2016-12-27 20:12 (1) Answers

Spring Boot Application Error

I am doing my first project with Spring Boot. I am getting the below error which I do not have clue about.Am I missing any dependency in build.gradle shown below?I am getting the error when I am running the Application.java file. org.springframe...
more »

2016-12-26 10:12 (1) Answers

Spring Boot Application

I am pretty new to Spring Boot Application. I wanted to understand how does a spring Boot Application create beans without @Configuration class . I had a look at a sample project where there was neither @Bean definitions nor a component scan yet @Aut...
more »

2016-12-25 04:12 (1) Answers