- 浏览: 56493 次
最新评论
文章列表
package com.sfpay.framework.base.pagination;
import java.io.Serializable;
import java.util.Collection;
//Ipage接口
public interface IPage
extends Serializable
{
public abstract long getTotal();
public abstract int getSize();
public abstract int getIndex();
publ ...
el中保留字empty与null的区别
先看例子:
Test.jsp代码
<%@page pageEncoding="utf-8" %><BR>name:${param.name }<br />
empty处理结果: ${empty param.name }<br />
==null处理结果:${param.name == null }
地址栏输入:地址栏输入:http://127.0.0.1:8080/test/test.jsp
显示:
显示代码
name:
empty处理结 ...
public class TestMain {
public static void main(String[] args) {
TT tt = s -> {
List<String> list = Arrays.asList(s);
list.forEach( ss -> System.out.println(ss));
};
tt.tt(new String[] {"ss","s","dd"});
}
interface TT {
v ...
<html>
<head>
</head>
<body>
</body>
<script>
(function () {
var yQuery = (function () {
var yQuery = function () {
return yQuery.fn.init();
};
yQuery.fn = yQuery.prototype = {
...
附件是eclipse注释的模板。。。。。。。。。。。。
mysql判读参数是否为单引号"''"需要转意
<if test='paramMap.testStr != null and paramMap.testStr != "''"'>
and 1=2
</if>
mysql判读参数是否为单引号"''"需要转意
<if test='paramMap.testStr != null and paramMap.testStr != "''"'>
and 1=2
</if>
SELECT
BRANCH_CODE,
BRANCH_NAME,
iae.FACE_AMT,
iae.SPEC,
iae.BEGIN_NO,
iae.END_NO,
(iae.PASS_BEN*iae.SPEC) AS RESERVE_COUNT,
iae.CODE,
iae.TOTAL_AMT,
DATE_FORMAT(SIGN_TIME, '%Y-%m-%d %H:%i:%S') AS ALLOT_TIME
FROM
invoice_applys ia
where 1 ...
//dao 代码 如果传入的参数是数组,也一样
void insertDefaultMsg(@Param("idsList") ArrayList<String> idsList);
//xml文件
<update id="insertDefaultMsg" parameterType="java.util.List">
UPDATE
plf_pur_delivery_plan p
SET
p.promise_delivery_amount = p.quantity_ ...
function Map() {
this.elements = new Array();
//获取MAP元素个数
this.size = function() {
return this.elements.length;
}
//判断MAP是否为空
this.isEmpty = function() {
return (this.elements.length < 1);
}
//删除MAP所有元素
this.clear = function() {
this ...
DROP PROCEDURE IF EXISTS add_att_batch_id;
DELIMITER // #将“;”转意
CREATE PROCEDURE add_att_batch_id()
BEGIN
DECLARE CurrentDatabase VARCHAR (100) ;
SELECT
DATABASE() INTO CurrentDatabase ; #获得当前数据库名称
IF NOT EXISTS
(SELECT
*
FROM
information_schema.columns
W ...
Spring3中用注解直接注入properties中的值
@Service
public class TestService{
@Value("${sytem.username}")
String loginUserName;
}
在spring中定义资源文件:
<context:property-placeholder />或者org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
<bean class="org.springframework.be ...
1 public class Person<T> {
2
3 }
4
5 import java.lang.reflect.ParameterizedType;
6 import java.lang.reflect.Type;
7
8 public class Student extends Person<Student> {
9 public static void main(String[] args) {
10 Student st=new Student();
11 Class clazz=st.getClass() ...
private List<Map<String, Object>> check(Workbook workBook) {
List<Map<String, Object>> excelValueList = null;
// 待导入的数据
int import_wb_sheetNos = workBook.getNumberOfSheets();
if (import_wb_sheetNos == 0) {
throw new ServiceException("NumberOfSheets 数 ...