原创 jQuery 取值、賦值的基本方法整理

轉載:http://www.jquerycn.cn/a_6730 /*獲得TEXT.AREATEXT的值*/  var textval = $("#text_id").attr("value"); //或者 var textval = $

原创 JPA 分頁查詢Pageable

service層:Service類 List<User> getAllUser(int page , int pagesize); DAO層:UserRepository類 @Component public interfa

原创 postman進行http接口測試

HTTP的接口測試工具有很多,可以進行http請求的方式也有很多,但是可以直接拿來就用,而且功能還支持的不錯的,我使用過的來講,還是postman比較上手。 優點: 1、支持用例管理 2、支持get、post、文件上傳、響應驗證

原创 50道Java線程面試題

鏈接:http://www.importnew.com/12773.html

原创 在springmvc項目中使用poi導入導出excel

轉載:http://blog.csdn.net/kingson_wu/article/details/38942967 首先要導入spring相關包,poi,和fileupload包,我是使用maven構建的。 一.導入ex

原创 JPA 註解

@Entity  作用:設置一個類爲實體類 Java代碼   @Entity   public class User {      }     @Table  作用:設置實體類對應的表,常與@Entity一起使用 參數:na

原创 mysql查詢一天,查詢一週,查詢一個月的數據

mysql查詢一天,查詢一週,查詢一個月的數據 查詢一天: select * from table where to_days(column_time) = to_days(now()); select * from table w

原创 自定義註解

元註解:   元註解的作用就是負責註解其他註解。Java5.0定義了4個標準的meta-annotation類型,它們被用來提供對其它 annotation類型作說明。Java5.0定義的元註解:     1.@Target,  

原创 Servlet

轉載:http://www.iteye.com/topic/766418 1,什麼是Servlet 2,Servlet有什麼作用 3,Servlet的生命週期 4,Servlet怎麼處理一個請求 5,Servlet與JSP有什麼區別

原创 spring-aop-@Aspect

Spring使用的AOP註解分爲三個層次: 前提條件是在xml中放開了<aop:aspectj-autoproxy proxy-target-class="true"/><!-- 開啓切面編程功能 --> 1、@Aspect放在類頭

原创 JPA-@oneToOne

一對一(@OneToOne)· 單向關聯# 註釋@OneToOne定義如下:@Target({METHOD, FIELD}) @Retention(RUNTIME)public @interface OneToOne {    Class

原创 JPA對多個字段模糊查詢

//對userNickName和userWorkNo進行分頁模糊查詢 @Query(“select u from User u where concat(u.userNickName,u.userWorkNo) like :userN