摘要:
221. Maximal Square package leetcode; public class Solution221 extends Solution { @Override public void test() { char[][] matrix = { {'1', '1', '1', ' 阅读全文
摘要:
<T>和<?>的区别 <T>是参数类型,常常用于泛型类或泛型方法的定义;<?>是通配符,一般不能直接用来定义类或泛型方法,因为它不能直接参与操作,常常用于泛型方法的调用代码或泛型方法的型参。 <T>在List、Set、Map中经常见到,用来限制Class中的参数类型,确保Class中参数的一致性。例 阅读全文
摘要:
org.hibernate.exception.DataException: could not perform addBatch at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConve 阅读全文
摘要:
postman发送请求时,报错信息如上。 原因在于:类User Info和Role使用OneToMany时,类UserInfo中用了懒加载fetch=FetchType.LAZY,导致在类UserInfo中取List<Role>时,加载数据的session已经关闭,出现报错。 解决方法: 别人的答案 阅读全文
摘要:
网上看的CXF+ws-secutiry大多是通过配置相关的xml文件来进行服务端部署,这儿给出不一样的做法。 web service接口及实现 package com.cxf.libraryServer; import javax.jws.WebMethod; @javax.jws.WebServi 阅读全文
摘要:
使用cxf所遇到的问题 阅读全文