02 2021 档案
摘要:1、js端方法调用 <a href="../xx/pdfDownload!exportToPdfReport.action?oid=123" target="_blank"><span>导出PDF</span></a> 2、后端方法 public void exportToPdfReport() t
阅读全文
摘要:1、applicationContext.xml配置 <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass
阅读全文
摘要:function ClosePage(){ if(navigator.userAgent.indexOf("MSIE") > 0){ if(navigator.userAgent.indexOf("MSIE 6.0") > 0) { window.opener = null; window.clos
阅读全文
摘要:1、分组:Map<String, List<Student>> map = list.stream().collect(Collectors.groupingBy(Student::getClassName)) 解释:对studentList按照班级分组,结果是一个map<List>,map中的ke
阅读全文
摘要:1、两种实现方式:1 xml 2 注解 注解式:三个核心注解 (不需要额外配置文件) 类上的:@Component & @EnableScheduling 定时执行的方法上的:@Scheduled(cron="0 0/10 * * * ?") XML式:applicationContext.xml中
阅读全文
摘要:1、-- create database link create database link ORCL.ABC.DEF connect to USER1 using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST =
阅读全文
摘要:select prodSeqNo, placeNo, sum(replaceTimes) from (select * from xxx where prodSeqNo in ('xxx','xxx','vvv')) temp where xxx='xxx' and yyy='yyy' group
阅读全文
摘要://定义list集合 List<P> list = Arrays.asList(new P(1, "哈哈"), new P(2, "嘿嘿"), new P(3, "呵呵")); //从list集合中,取出字段name的列表并去重 List<String> names = list.stream().
阅读全文