-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem loading application without the need of REDIS #39
Comments
Ok, before going further, i will take a look a these examples, maybe i missed something. |
Ok, i haven't seen usefull tips to help me. My pom is with this (when removed, no problem) : <parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.6.RELEASE</version>
<relativePath/>
</parent>
...
<dependency>
<groupId>it.ozimov</groupId>
<artifactId>spring-boot-email-core</artifactId>
<version>0.5.0</version>
</dependency> My java code just got this, it's a new project : @SpringBootApplication
@EnableEmailTools
public class IndustryJarvisApplication {
public static void main(String[] args) {
SpringApplication.run(IndustryJarvisApplication.class, args);
}
} When i launch i got the above errors. |
Ok, it's seems that Spring Boot is trying to auto-configure Redis when we load the spring-boot-email-core dependency. If we don't want to use Redis we need to exclude it from the auto-configuration. I've found here the solution :
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.session.SessionAutoConfiguration And it works. I think it will be an useful tips to put in the documentation. Thanks for your help. |
There's already docs about spring-session, the error was caused by spring-session and spring-boot-starter-data-redis on classpath, it tried to auto-configure as redis http-sessions store.
There's no email-tools error by redis implementation. |
@alkaphreak @miguelsauza Got it. I will update the doc as soon as possible, or, you can contribute by updating them by yourself: any Pull Request that fixes the issue is more than welcome :) |
I tried to reproduce the error just to stay clear but it's not a problem caused by email-tools. As the first stacktrace line indicates: org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class. That class is part of spring-session module and it tries to auto-configure by OnConditional annotation that found spring-boot-starter-data-redis on classpath. |
Thanks a lot for investigating. Yeah your analysis looks convincing. Unfortunately I have no time at the moment to run some tests. I'll keep this open for correctness. |
I'm having the same problem with spring boot 1.5.4. It isn't very obvious, but when using the /health endpoint of spring actuator things break. For now I've resolved it by excluding the redis dependencies, but that doesn't feel like a real solution: |
@evandongen just to know, which OS are you using? |
I'm using ubuntu 14.04, running with IntelliJ 2017.1.4 in Tomcat 7.0.751 |
When the persistence and the scheduler are disabled :
This error keeps coming :
Can you provide a way in the documentation to avoid this ?
I don't need the persistence or scheduling layer and don't want to install a redis instance just to send some mails.
The text was updated successfully, but these errors were encountered: