原创 oracle regexp_like函數和replace函數的用法

SELECT tp.* FROM temp tp WHERE tp.id = 11 AND tp.MASK = '11111' AND regexp_like(replace(tp.EXT,'*','_'),'ABCD') AND re

原创 數據庫表常用操作

ORACLE --修改表結構 ALTER TABLE table_name RENAME TO table_name2 --修改表名 ALTER TABLE table_name RENAME COLUMN column_name

原创 struts2的Action Chaining

action鏈 框架提供了一種鏈接各種action成爲一個定義好的sequence或者workflow。這個特性通過應用Chain Result到一個給定的action而起作用, 通過ChainingInterceptor來攔截他的目標a

原创 struts2的Action配置

action配置 action映射在框架中是基本的工作單元。本質上action將一個標識符映射到一個處理類。 當一個請求匹配action名字的時候,框架使用映射去決定怎麼處理請求 action映射 action映射能指定一系列結果類型,一

原创 java直接用jdbc操作oracle數據庫

第一步:將ojdbc6.jar加入到項目屬性Java Build Path的Libraries中,此jar在安裝oracle的目錄下 第二步:java代碼 public class jdbcCon { private Connecti

原创 struts2的ActionEventListener

ActionEventListener 一個actioneventListener可以被用作當action實例被創建或者當處理action時exception發生的時候添加一個處理邏輯。 配置 目前對於整個struts2應用只有一個Act

原创 Quartz.Net的使用

首先下載依賴dll:https://www.quartz-scheduler.net/download.html 將下載好的三個dll引入:Common.Logging.Core.dll,Common.Logging.Core.dll,

原创 AngularJS模態框

首先引入ui.bootstrap var app = angular.module('app', ['ngRoute', 'ui.bootstrap']); 申明$modal app.controller("testCtrl", func

原创 ASP.NET MVC ApiController過濾器預處理表單數據

Filter Attribute: using My.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net

原创 ASP.NET MVC Controller過濾器預處理表單數據

Filter Atttribute: using System; using System.Collections.Generic; using System.Configuration; using System.Linq; usin

原创 .net 工程log4net的使用

在app.config的configuration節點開頭配置config節點<configSections> <section name="log4net" type="log4net.Config.Log4

原创 .net解析Excel

/// <summary> /// /// </summary> /// <param name="filepath">文件地址</param> /// <param name="sheetName">工作博名稱</param> ///

原创 ASP.NET MVC ApiController過濾器處理返回結果

public class OpenIdAutoDecryptAttr : ActionFilterAttribute { public override void OnActionExecuted(Http

原创 c#藉助CommandLineParser寫命令行工具

CommandLine.dll可以從http://commandline.codeplex.com/下載//選項類 class Options { [Option('n', HelpText = "This is a test")]

原创 java多線程併發處理之阻塞隊列LinkedBlockingQueue用法

<pre name="code" class="java">public class ThreadRelatedService2 { // key point: records list must be ordered