你好 大大。在第十九章的redis学习中 我发现IDE会报一个Target Method is generic的错误。但是程序是可以运行的。在Stack Overflow上说:You can’t use a lambda expression for a functional interface, if the method in the functional interface has type parameters. See section §15.27.3 in JLS8: 可以查到 `public interface SessionCallback<T> {
/**
* Executes all the given operations inside the same session.
*
* @param operations Redis operations
* @return return value
*/
<K, V> T execute(RedisOperations<K, V> operations) throws DataAccessException;
你好 大大。在第十九章的redis学习中 我发现IDE会报一个Target Method is generic的错误。但是程序是可以运行的。在Stack Overflow上说:You can’t use a lambda expression for a functional interface, if the method in the functional interface has type parameters. See section §15.27.3 in JLS8:
可以查到
`public interface SessionCallback<T> {
}`
该接口的execute有两个类型参数K,V。所以这样的写法虽然可以运行,但是也许不是太符合规范?
小弟初学java,希望大大可以解惑。感激不尽
感觉这书挺不错,就是mybatis部分和《深入浅出mybatis技术原理与实战》太相似,两本书都买了,想问下看了这书以后,还需要读《深入浅出mybatis技术原理与实战》吗,如果需要那么哪些内容是不重复并且推荐的呢?
视频下载怎么只有一个课时的视频,其他课时的视频在哪里看?
我也需要电子版的,实体图 带来带去的好重
请问能不能提供电子版,在海外读书,没法买纸质版。谢谢。