Code Monkey home page Code Monkey logo

spring-boot-web-ehchache-3-persistance's Introduction

Spring boot web Echache3 file Persistence

his sample demonstrates the caching auto-configuration support. Spring's caching abstraction is supported by many caching libraries, including:

  • Any compliant JSR-107 (JCache) provider
  • EhCache
  • Hazelcast
  • Infinispan
  • Couchbase
  • Redis
  • Caffeine
  • Simple provider based on ConcurrentHashMap
  • Generic provider based on org.springframework.Cache bean definition(s)

this one is a sample for spring boot web with ehcaceh3 file persistence support and how to inject the cache manager plus how to do operations with the cache itself , for more information please check my blog :

https://mromeh.com/2017/12/22/spring-boot-with-ehcache-3-and-jsr-107/

spring-boot-web-ehchache-3-persistance's People

Contributors

romeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spring-boot-web-ehchache-3-persistance's Issues

Error while launching application

[2018-04-03 17:55:10] [main] ERROR o.s.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehcacheAlertsStore' defined in file [C:\Users\abc\git\spring-boot-web-Ehchache-3-Persistance1\target\classes\com\demo\alertmanager\repositories\impl\EhcacheAlertsStore.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.demo.alertmanager.repositories.impl.EhcacheAlertsStore]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The method getErrorCode() is undefined for the type AlertEntry
The method getServiceId() is undefined for the type AlertEntry
The method getErrorCode() is undefined for the type AlertEntry
The method getServiceId() is undefined for the type AlertEntry
The method getErrorCode() is undefined for the type AlertEntry
Type mismatch: cannot convert from List to List
The method builder() is undefined for the type AlertHolder
The method getMaxCount() is undefined for the type AlertConfigEntry

Data persisted is refreshed after application restart.

Although in the ehcache.xml persistence element is specified, the cache data is not persisted across restart. The index file is not created when the application is shutdown. I hope the issue is related to clean shutdown. Could you help to identify the cause and give a solution on how to solve it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.