我只是按照Infinispan 嵌入式教程,在第 5 步它因为这个异常不起作用:
java.lang.IllegalArgumentException: No marshaller registered for Java type org.infinispan.tutorial.embedded.LocationWeather
.
[some details here]
.
.
at org.infinispan.cache.impl.EncoderCache.put(EncoderCache.java:674)
at org.infinispan.tutorial.embedded.CachingWeatherService.getWeatherForLocation(CachingWeatherService.java:17)
at org.infinispan.tutorial.embedded.WeatherApp.fetchWeather(WeatherApp.java:50)
at org.infinispan.tutorial.embedded.WeatherApp.main(WeatherApp.java:69)
我正在寻找如何在 这里注册编组器,但我不明白,它应该在pom.xml或哪里声明?
如果是在pom,在哪一部分?
感谢:D