原创 Form token KO80SIJW4F84034NG5HM1ZBUGOVNY64D does not match the session token null.

    token: 在活動中檢查合法令牌(token), 防止表單的重複提交; 在<s:actionerror/>會產生提示信息  但是在接到非法令牌時將提交的數據保存在session中; 不會在<s:actionerror/>會產生提

原创 No configuration found for the specified action:異常

警告: No configuration found for the specified action: 'wa' in namespace: ''. Form action defaulting to 'action' attribut

原创 oracle按方案模式導入導出數據

--4.導入/導出數據 --(1)創建目錄對象 create directory my_im_exp_bak as 'D:\aaa'; --(2)用戶授權 grant connect,resource to aaa; grant read

原创 Hibernate中cascade與inverse屬性的理解

cascade:級聯 (用於簡化session.save()); inverse:true放棄控制權 默認false(你操作的是哪一方,就讓另一方的inverse爲true); 如果想同時實現增刪改查,則不能指定 inverse屬性 一.

原创 MyBatis調用Oracle存儲過程

一.建立存儲過程(帶輸入,輸出參數的存儲過程( 根據員工編號查詢 工資 )) create or replace procedure proinout (--參數 v_eno in emp.empno%type,--入參7369 v_sa

原创 Char 轉int JAVA

char ax = '1'; int i = Integer.parseInt(String.valueOf(ax)); System.out.println(i); 點贊 收藏 分享 文章舉

原创 2016-03-28藍橋杯省賽

點贊 1 收藏 分享 文章舉報 周向源 發佈了25 篇原創文章 · 獲贊 9 · 訪問量 3萬+ 私信 關注

原创 算法提高 身份證號碼升級 JAVA

package text; //算法提高 身份證號碼升級 import java.util.Scanner; public class Main16 { public static void main(String[] args

原创 阿里雲批量發送短信接口Api

官方的DEMO給的jar包版本過低       最新的批量發送沒有支持引入代碼後會出現SendBatchSmsResponse對象找不到最新的pom文件    2018.3.22   引入就行了<dependency> <group

原创 Spring+Mybatim+SpringMVC配置事物oracle數據庫

參考:http://www.cnblogs.com/huzi007/p/3967922.html 參考:http://www.blogjava.net/robbie/archive/2009/04/05/264003.html 完整地配

原创 JAVA併發的學習筆記

第一節           線程池:1.線程池在包java.util.concurrent.Executors                          2.常用方法 newCachedThreadPool();創建一個根據需要創

原创 struts2前端頁面讀取Clob BLOB

原文   http://blog.csdn.net/shanhuhau/article/details/38794671 在通過Struts2標籤顯示對象的Clob屬性值的時候,顯示的並不是CLOB或者BLOB的內容,而是顯示的toS

原创 Oracle主鍵自增(觸發器實現)

--觸發器 create or replace trigger tr_identity_stud before insert on bt_stud for each row--行級觸發器 begin select stu_seq

原创 no session or session was closed處理方法

首先說明一下,hibernate的延遲加載特性(lazy)。所謂的延遲加載就是當真正需要查詢數據時才執行數據加載操作。因爲hibernate當中支持實體對象,外鍵會與實體對象關聯起來。如果沒有這一特性,當查詢某一個含有外鍵的實體對象時,

原创 單例模式的七種寫法

轉載請註明出處:http://cantellow.iteye.com/blog/838473 第一種(懶漢,線程不安全):   Java代碼   public class Singleton {       private