Skip to content

arsuriya/spring-caching-generics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spring-caching-generics

The effect of generics on spring caching using method parameter names

Known fixes for the error - org.springframework.expression.spel.SpelEvaluationException: EL1007E:(pos 0): Property or field 'id2' cannot be found on null

  • Update the specific interface(s) IfDao1.java, IfDao2.java and uncomment the line that overrides the save method from the parent

  • Replace the reference to method parameter name in the @CacheEvict key to #root.args[0] : also helpful if code is not compiled with debug information

Compile and run

mvn clean compile

mvn exec:java -Dexec.mainClass="net.ars.sample.spring.caching.Main"

About

The effect of generics on spring caching

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages