Jhipster session timeout

In my application there is use of Jhipster+Spring Boot+Spring Security + Rest API+Angular js+Spring boot. I know that we can set session timeout value in yml file. But what i wanted to understand is how is the time interval calculated in such applica...
more »

2017-04-19 15:04 (1) Answers

Spring Boot Cache TTL

I want to use Spring Boot Cache Abstraction to cache some data (https://docs.spring.io/spring/docs/current/spring-framework-reference/html/cache.html). I'm open to using any of the providers that are available. The main thing I need is this: I want ...
more »

2017-04-19 05:04 (1) Answers

Hazelcast + Spring Boot + Cache Manager

I'm trying to create a instance of Hazelcast client but I can't Override the Cache Manager implementation from Spring. I don't want to use a hazelcast.xml (so, I'm in a spring boot application). There is a way to do it? Follow my test: @Bean CacheM...
more »

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

@PathVariable in SpringBoot with slashes in URL

I have to get params from URL using @PathValiable in SpringBoot application. These params often have slashes. I don't have a control about what a user would enter in URL so I would like to get what he has entered and then I can handle with it. I hav...
more »

2017-04-18 13:04 (3) Answers

How to calla method only once in a Controller

I have a REST API and I want to call a method which creates the TreeMap from a csv file and I want to use the TreeMap for rest of the each API calls.So I just want to call the method to set the TreeMap and want to use the TreeMap for rest of the API ...
more »

2017-04-18 04:04 (1) Answers

spring boot + spring security + spring-oauth2

I am working on spring boot security and ouath2. I have three separate applications authentication server, resource and UI. when I run the application and click login button of UI application the request redirect successfully to authentication server...
more »

2017-04-15 13:04 (0) Answers

Spring Boot store upload file

I have to store an image for a few minutes after user upload it to show a preview, before confirmation, after confirmation i need get it back and persist. I would like to know the best pratice to do this. I saw about Cache and Caffeine, but i don't...
more »

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

How to test JavaMailSender?

I have little problem. I created MailService to send mails. When I run program, it works. All properties to email I have in resources/application.properties. I'm using spring-boot-starter-mail. @Service public class MailService { private JavaMai...
more »

2017-04-13 11:04 (1) Answers

How to call a scheduler inside a controller

I am having a rest Controller and inside the REST Controller I wanted to call a method which updates an array list ob objects every 5 seconds.I update the list every five seconds so that I want check one of the request parameter with the array list d...
more »

2017-04-11 11:04 (1) Answers

How to test it.ozimov.springboot Email?

I want to make unit test of sending message by using it.ozimov.springboot.mail.service.EmailService. https://github.com/ozimov/spring-boot-email-tools Here is my MailService: import com.google.common.collect.Lists; import it.ozimov.springboot.mail....
more »

2017-04-10 14:04 (0) Answers

Facebook OAuth doesn't return email of user

I am following this tutorial on Spring Boot with OAuth: https://spring.io/guides/tutorials/spring-boot-oauth2/ In the 'click' app, I added: security: oauth2: client: clientId: 233668646673605 clientSecret: 33b17e044ee6a4fa383f46ec6e28ea1d sco...
more »

2017-04-10 02:04 (1) Answers

Unable to deploy my Grails 3 app on Heroku

I am trying to deploy my Grails 3 app on Heroku. I have referred this blog, and followed each and every step, but when I try to run the git push heroku master command, following output is produced. remote: FAILURE: Build failed with an exce...
more »

2017-04-09 19:04 (1) Answers

Spring Boot Start Cache Not triggering

I am running a spring boot 1.5.2 app. I wanted to add caching to my service methods I have added the spring-boot-starter-cache maven dependency and I am using the @ Cacheable annotations but it is not taking effect I created my service beans in a @ C...
more »

2017-04-09 16:04 (2) Answers