This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@Table(name="t_student") | |
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE) | |
public class Student { | |
private int id; | |
private String name; | |
private Set<Teacher> teacherSet; | |
@Id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@Table(name="t_card") | |
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE) | |
public class Card { | |
private int id; | |
private String cardnum; | |
private User user; | |
@Id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<c:choose> | |
<c:when test="${param.code == 10001}"> | |
<div style="color:red">用户名或密码错误</div> | |
</c:when> | |
</c:choose> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kaishengit.commons.io; | |
import java.io.InputStream; | |
import java.net.URL; | |
import org.apache.commons.io.IOUtils; | |
public class IOUtilsTest { | |
public static void main(String[] args) throws Exception { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Context> | |
<!-- maxActive: Maximum number of database connections in pool. Make sure you | |
configure your mysqld max_connections large enough to handle | |
all of your db connections. Set to -1 for no limit. | |
--> | |
<!-- maxIdle: Maximum number of idle database connections to retain in pool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT brithday FROM t_customer | |
WHERE | |
DATE_FORMAT(brithday,'%m-%d') >= '08-07' AND DATE_FORMAT(brithday,'%m-%d') <= '09-29' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args){ | |
String str = "凯盛软件"; | |
System.out.println(stringToPinYin(str)); | |
} | |
public static String charToPinYin(char c) { | |
HanyuPinyinOutputFormat format = new HanyuPinyinOutputFormat(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kaishengit.dao.core; | |
import java.io.Serializable; | |
import java.lang.reflect.ParameterizedType; | |
import java.lang.reflect.Type; | |
import java.util.List; | |
import java.util.Map; | |
import org.hibernate.Criteria; | |
import org.hibernate.Query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="persons" style="width:300px;height:300px"></div> | |
<div id="moneys" style="width:300px;height:300px"></div> | |
<script src="js/jquery.js" type="text/javascript"></script> | |
<script src="js/bootstrap.min.js" type="text/javascript"></script> | |
<script src="js/flot/jquery.flot.min.js" type="text/javascript"></script> | |
<script src="js/flot/jquery.flot.pie.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var data = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<input type="text" name="" id="address" /><input type="button" value="显示地图" id="btn" /> | |
<div id="map" style="width:700px;height:500px"> |
OlderNewer