精品亚洲国产成人,亚洲一区二区三区久久久久,亚洲国产成人久久精品软件http://www.tkk7.com/tiandizhijian/category/48434.html不要因為風雨飄落就停止了你的腳步,真正的得失就在你的心中。zh-cnTue, 10 Jul 2012 17:00:55 GMTTue, 10 Jul 2012 17:00:55 GMT6010 整合spring3和mybatis進行web開發之例子代碼位置描述http://www.tkk7.com/tiandizhijian/articles/382457.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 07:40:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382457.htmlhttp://www.tkk7.com/tiandizhijian/comments/382457.htmlhttp://www.tkk7.com/tiandizhijian/articles/382457.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382457.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382457.html



jsp的存放位置和Action中的RequestMapping豬腳密切相關,需要仔細對比后面的11,12,13三節案例,尋找規律




秋天的山谷 2012-07-07 15:40 發表評論
]]>
12 整合spring3和mybatis進行web開發之Hello1Action(RequestMapping豬腳) http://www.tkk7.com/tiandizhijian/articles/382454.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 07:26:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382454.htmlhttp://www.tkk7.com/tiandizhijian/comments/382454.htmlhttp://www.tkk7.com/tiandizhijian/articles/382454.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382454.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382454.htmlHello2Action.java

package com.tianhe.app.pub.hello2.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
//請注意類上定義RequestMapping,視圖不以/開始
@RequestMapping("/pub/hello2")
public class Hello2Action
{
    @RequestMapping("/helloA")
    public String helloMethodA()
    {
        System.out.println("hello2.helloA");
        return "pub/hello2/helloA";
    }
   
    @RequestMapping("/helloB")
    public String helloMethodB()
    {
        System.out.println("hello2.helloB");
        return "pub/hello2/helloB";
    }
}


WEB-INF/pub/hello2/helloA.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>天河框架案例演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="
http://localhost:8080/jxc/skins/default/css/ngmain.css" />
<script language=javascript src="http://localhost:8080/jxc/skins/default/js/ngcommon.js"></script>
<script language="javascript">
function doLogin()
{
 document.form0.action = "<%=request.getContextPath()%>/loginAction!login.action";
 document.form0.method = "post";
 document.form0.submit();
}
</script>
</head>

<body>
<h2>hello2.helloA</h2>

<center>
<div id="footer">
<h5>幫助 | 關于我們 | 使用條款 | 開放平臺</h5>
<a href="http://localhost:8080/jxc/welcome.jsp">f_qiangqiang@qq.com</a>
</div>
</center>
</body>
</html>


WEB-INF/pub/hello2/helloB.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>天河框架案例演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="
http://localhost:8080/jxc/skins/default/css/ngmain.css" />
<script language=javascript src="http://localhost:8080/jxc/skins/default/js/ngcommon.js"></script>
<script language="javascript">
function doLogin()
{
 document.form0.action = "<%=request.getContextPath()%>/loginAction!login.action";
 document.form0.method = "post";
 document.form0.submit();
}
</script>
</head>

<body>
<h2>hello2.helloB</h2>

<center>
<div id="footer">
<h5>幫助 | 關于我們 | 使用條款 | 開放平臺</h5>
<a href="http://localhost:8080/jxc/welcome.jsp">f_qiangqiang@qq.com</a>
</div>
</center>
</body>
</html>





秋天的山谷 2012-07-07 15:26 發表評論
]]>
11 整合spring3和mybatis進行web開發之Hello1Action(類沒有RequestMapping豬腳)http://www.tkk7.com/tiandizhijian/articles/382453.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 07:23:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382453.htmlhttp://www.tkk7.com/tiandizhijian/comments/382453.htmlhttp://www.tkk7.com/tiandizhijian/articles/382453.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382453.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382453.htmlHello1Acction.java
//請注意類上不定義RequestMapping,視圖以/開始
@Controller
public class Hello1Action
{
    @RequestMapping("/pub/hello1/helloA")
    public String helloMethodA()
    {
        System.out.println("hello1.helloA");
        return "/pub/hello1/helloA";
    }
   
    @RequestMapping("/pub/hello1/helloB")
    public String helloMethodB()
    {
        System.out.println("hello1.helloB");
        return "/pub/hello1/helloB";
    }
}

WEB-INF/pub/hello1/hello1A.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>天河框架案例演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="
http://localhost:8080/jxc/skins/default/css/ngmain.css" />
<script language=javascript src="http://localhost:8080/jxc/skins/default/js/ngcommon.js"></script>
<script language="javascript">
function doLogin()
{
 document.form0.action = "<%=request.getContextPath()%>/loginAction!login.action";
 document.form0.method = "post";
 document.form0.submit();
}
</script>
</head>

<body>
<h2>hello1.helloA</h2>

<center>
<div id="footer">
<h5>幫助 | 關于我們 | 使用條款 | 開放平臺</h5>
<a href="http://localhost:8080/jxc/welcome.jsp">f_qiangqiang@qq.com</a>
</div>
</center>
</body>
</html>


WEB-INF/pub/hello1/hello1B.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>天河框架案例演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="
http://localhost:8080/jxc/skins/default/css/ngmain.css" />
<script language=javascript src="http://localhost:8080/jxc/skins/default/js/ngcommon.js"></script>
<script language="javascript">
function doLogin()
{
 document.form0.action = "<%=request.getContextPath()%>/loginAction!login.action";
 document.form0.method = "post";
 document.form0.submit();
}
</script>
</head>

<body>
<h2>hello1.helloB</h2>

<center>
<div id="footer">
<h5>幫助 | 關于我們 | 使用條款 | 開放平臺</h5>
<a href="http://localhost:8080/jxc/welcome.jsp">f_qiangqiang@qq.com</a>
</div>
</center>
</body>
</html>



秋天的山谷 2012-07-07 15:23 發表評論
]]>
09 整合spring3和mybatis進行web開發之log4j_prpoertieshttp://www.tkk7.com/tiandizhijian/articles/382452.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 07:17:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382452.htmlhttp://www.tkk7.com/tiandizhijian/comments/382452.htmlhttp://www.tkk7.com/tiandizhijian/articles/382452.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382452.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382452.html# LOW->HIGH: TRACE->DEBUG->INFO->WARN->ERROR->FATAL
log4j.rootLogger=ERROR,A1

log4j.category.com.tianhe=DEBUG,A1
log4j.additivity.com.tianhe=false

log4j.category.com.tianhe.operator=DEBUG,A1
log4j.additivity.com.tianhe.operator=false

log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.Threshold=error
log4j.appender.console.Target=System.out
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %C{1}.%M(%F.%L) %m %x %n

log4j.appender.A1=org.apache.log4j.RollingFileAppender
log4j.appender.A1.File=d:/ngcrm.log
log4j.appender.A1.MaxFileSize=20MB
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %C{1}.%M(%F.%L) %m %x %n
log4j.appender.A1.append=false



秋天的山谷 2012-07-07 15:17 發表評論
]]>
08 整合spring3和mybatis進行web開發之global_security_xmlhttp://www.tkk7.com/tiandizhijian/articles/382450.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 07:14:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382450.htmlhttp://www.tkk7.com/tiandizhijian/comments/382450.htmlhttp://www.tkk7.com/tiandizhijian/articles/382450.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382450.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382450.html<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns=" xmlns:xsi=" xmlns:lang="http://www.springframework.org/schema/beans   
       http://www.springframework.org/schema/beans/spring-beans-3.0.xsd  
       http://www.springframework.org/schema/aop   
       http://www.springframework.org/schema/aop/spring-aop-3.0.xsd  
       http://www.springframework.org/schema/tx   
       http://www.springframework.org/schema/tx/spring-tx-3.0.xsd     
       http://www.springframework.org/schema/context   
       http://www.springframework.org/schema/context/spring-context-3.0.xsd     
       http://www.springframework.org/schema/jee   
       http://www.springframework.org/schema/jee/spring-jee-3.0.xsd      
       http://www.springframework.org/schema/lang  
       http://www.springframework.org/schema/lang/spring-lang-3.0.xsd  
       http://www.springframework.org/schema/security   
      

 <http access-denied-page="/accessDenied.jsp">
  <intercept-url pattern="/styles/**" filters="none" />
  <intercept-url pattern="/images/**" filters="none" />
  <intercept-url pattern="/scripts/**" filters="none" />
  <intercept-url pattern="/index.jsp" filters="none" />  
  <intercept-url pattern="/login.jsp" filters="none" />
  <intercept-url pattern="/accessDenied.jsp" filters="none" />
  <intercept-url pattern="/role/**" access="ROLE_ADMIN" />
  <intercept-url pattern="/**" access="ROLE_USER,ROLE_ADMIN" />

  <!-- default-target-url="/home/load" -->
  <form-login login-page="/login.jsp"
   authentication-failure-url="/login.jsp?error=true"
   default-target-url="/main.jsp"
   always-use-default-target="true" />
  <logout logout-success-url="/login.jsp" />
  <http-basic />
 </http>

 <authentication-manager>
  <authentication-provider>
   <user-service>
    <user name="admin" password="1" authorities="ROLE_ADMIN" />
    <user name="a" password="1" authorities="ROLE_USER" />
    <user name="b" password="2" authorities="ROLE_USER,ROLE_ADMIN" />
    <user name="c" password="3" authorities="ROLE_GUEST" />
   </user-service>
  </authentication-provider>
 </authentication-manager>

</beans:beans> 



秋天的山谷 2012-07-07 15:14 發表評論
]]>
07 整合spring3和mybatis進行web開發之global_common_xmlhttp://www.tkk7.com/tiandizhijian/articles/382449.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 07:13:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382449.htmlhttp://www.tkk7.com/tiandizhijian/comments/382449.htmlhttp://www.tkk7.com/tiandizhijian/articles/382449.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382449.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382449.html<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" xmlns:xsi=" xmlns:aop="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/context
      http://www.springframework.org/schema/context/spring-context-3.0.xsd
      http://www.springframework.org/schema/tx
      http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
      http://www.springframework.org/schema/aop
      http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
      http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
      http://www.springframework.org/schema/task
     

 <mvc:annotation-driven />
 <context:component-scan base-package="com.tianhe" />

 <bean id="dsKeyRoute" class="com.tianhe.frm.mvc.dao.DsKeyRouteImpl"/>

</beans>



秋天的山谷 2012-07-07 15:13 發表評論
]]>
06 整合spring3和mybatis進行web開發之login_jsp(spring_security)http://www.tkk7.com/tiandizhijian/articles/382448.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 07:11:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382448.htmlhttp://www.tkk7.com/tiandizhijian/comments/382448.htmlhttp://www.tkk7.com/tiandizhijian/articles/382448.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382448.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382448.html<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>Spring Security - Login.jsp</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="
http://localhost:8080/jxc/skins/default/css/ngmain.css" />
<script language=javascript src="http://localhost:8080/jxc/skins/default/js/ngcommon.js"></script>
<script language="javascript">
function doLogin()
{
 document.form0.action = "<%=request.getContextPath()%>/loginAction!login.action";
 document.form0.method = "post";
 document.form0.submit();
}
</script>
</head>
<body onload='document.f.j_username.focus();'>
<h3>Login with Username and Password</h3>

<form name="f" method="POST"
 action="<c:url value="j_spring_security_check"/>">
<table>
 <tr>
  <td align="right">Username</td>
  <td><input type="text" name="j_username" value="a" /></td>
 </tr>
 <tr>
  <td align="right">Password</td>
  <td><input type="password" name="j_password" value="1" /></td>
 </tr>
 <tr>
  <td colspan="2" align="right"><input type="submit" value="Login" />
  <input type="reset" value="Reset" /></td>
 </tr>
</table>
</form>

<center>
<div id="footer">
<h5>幫助 | 關于我們 | 使用條款 | 開放平臺</h5>
<a href="http://localhost:8080/jxc/welcome.jsp">f_qiangqiang@qq.com</a>
</div>
</center>

<center><h1><a href=">

</body>
</html>



秋天的山谷 2012-07-07 15:11 發表評論
]]>
05 整合spring3和mybatis進行web開發之main_jsphttp://www.tkk7.com/tiandizhijian/articles/382446.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 07:09:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382446.htmlhttp://www.tkk7.com/tiandizhijian/comments/382446.htmlhttp://www.tkk7.com/tiandizhijian/articles/382446.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382446.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382446.html<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>天河框架案例演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="
http://localhost:8080/jxc/skins/default/css/ngmain.css" />
<script language=javascript src="http://localhost:8080/jxc/skins/default/js/ngcommon.js"></script>
<script language="javascript">
function doLogin()
{
 document.form0.action = "<%=request.getContextPath()%>/loginAction!login.action";
 document.form0.method = "post";
 document.form0.submit();
}
</script>
</head>

<body>
<jsp:include page="/inc/header.jsp">
 <jsp:param name="topIndex" value="4" />
 <jsp:param name="leftIndex" value="blog" />
</jsp:include>

<h1>main.jsp</h1>

<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/index.jsp">${sessionScope["SESSION_ROOT_URL"]}/index.jsp</a></h1>

<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/pub/hello1/helloA.do">${sessionScope["SESSION_ROOT_URL"]}/pub/hello1/helloA.do</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/pub/hello1/helloB.do">${sessionScope["SESSION_ROOT_URL"]}/pub/hello1/helloB.do</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/pub/hello2/helloA.do">${sessionScope["SESSION_ROOT_URL"]}/pub/hello2/helloA.do</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/pub/hello2/helloB.do">${sessionScope["SESSION_ROOT_URL"]}/pub/hello2/helloB.do</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/pub/hello3/helloA/zhangsan/55.do">${sessionScope["SESSION_ROOT_URL"]}/pub/hello3/helloA/zhangsan/55.do</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/pub/hello3.do?service=serviceB&username=lisi&password=123456">${sessionScope["SESSION_ROOT_URL"]}/pub/hello3.do?service=serviceB&username=lisi&password=123456</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/pub/hello3/helloC.do?id=100">${sessionScope["SESSION_ROOT_URL"]}/pub/hello3/helloC.do?id=100</a></h1>

<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/jsp/example/ajax/ajaxGetInput1.jsp">${sessionScope["SESSION_ROOT_URL"]}/jsp/example/ajax/ajaxGetInput1.jsp</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/jsp/example/ajax/ajaxPostInput1.jsp">${sessionScope["SESSION_ROOT_URL"]}/jsp/example/ajax/ajaxPostInput1.jsp</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/jsp/example/html/textarea.html">${sessionScope["SESSION_ROOT_URL"]}/jsp/example/html/textarea.html</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/jsp/example/i18n/i18n.jsp">${sessionScope["SESSION_ROOT_URL"]}/jsp/example/i18n/i18n.jsp</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/jsp/example/jdbc/OracleDriver.jsp">${sessionScope["SESSION_ROOT_URL"]}/jsp/example/jdbc/OracleDriver.jsp</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/jsp/example/jdbc/JdbcOperation.jsp">${sessionScope["SESSION_ROOT_URL"]}/jsp/example/jdbc/JdbcOperation.jsp</a></h1>
<h1><a href="${sessionScope["SESSION_ROOT_URL"]}/batchAction!init.action">${sessionScope["SESSION_ROOT_URL"]}/batchAction!init.action</a></h1>
 
<center>
 <div id="footer">
  <h5>幫助  |  關于我們  |  使用條款    |  開放平臺</h5>
  <a href="http://localhost:8080/jxc/welcome.jsp">f_qiangqiang@qq.com</a>
 </div>
</center>

<center><h1><a href=">

<jsp:include page="/inc/footer.jsp">
 <jsp:param name="topIndex" value="4" />
 <jsp:param name="leftIndex" value="blog" />
</jsp:include>

</body>
</html>



秋天的山谷 2012-07-07 15:09 發表評論
]]>
03 整合spring3和mybatis進行web開發之dispatcher_servlet_xml(請注意拷貝引用的命名空間要全)http://www.tkk7.com/tiandizhijian/articles/spring_mvc.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 06:58:00 GMThttp://www.tkk7.com/tiandizhijian/articles/spring_mvc.htmlhttp://www.tkk7.com/tiandizhijian/comments/382444.htmlhttp://www.tkk7.com/tiandizhijian/articles/spring_mvc.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382444.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382444.html<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" xmlns:xsi=" xmlns:aop="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/context
      http://www.springframework.org/schema/context/spring-context-3.0.xsd
      http://www.springframework.org/schema/tx
      http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
      http://www.springframework.org/schema/aop
      http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
      http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
      http://www.springframework.org/schema/task
                 
 <mvc:annotation-driven />   
    <context:component-scan base-package="com.tianhe" />

    <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
        <property name="prefix" value="/WEB-INF/" />
        <property name="suffix" value=".jsp"></property>
    </bean>
   
    <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource" p:basename="i18n/messages" />
   
</beans>
 
 



秋天的山谷 2012-07-07 14:58 發表評論
]]>
02 整合spring3和mybatis進行web開發之web_xml(使用了spring_security)http://www.tkk7.com/tiandizhijian/articles/382443.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 06:56:00 GMThttp://www.tkk7.com/tiandizhijian/articles/382443.htmlhttp://www.tkk7.com/tiandizhijian/comments/382443.htmlhttp://www.tkk7.com/tiandizhijian/articles/382443.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382443.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382443.html<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi=" xmlns="http://java.sun.com/xml/ns/javaee  version="2.5">

 <display-name>Tianhe Framework Example Application</display-name>

 <!--  -->
 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>
   classpath:META-INF/spring/global.common.xml  
   classpath:META-INF/spring/global.datasource.xml
   classpath:META-INF/spring/global.security.xml  
  </param-value>
 </context-param>

 <context-param>
  <param-name>webAppRootKey</param-name>
  <param-value>example</param-value>
 </context-param>

 <context-param>
  <param-name>log4jConfigLocation</param-name>
  <param-value>classpath:/log4j.properties</param-value>
 </context-param>

 <context-param>
  <param-name>log4jRefreshInterval</param-name>
  <param-value>60000</param-value>
 </context-param>

 <listener>
  <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
 </listener>

 <listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 </listener>

 <listener>
  <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
 </listener>

 <filter>
  <filter-name>characterEncodingFilter</filter-name>
  <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  <init-param>
   <param-name>encoding</param-name>
   <param-value>UTF-8</param-value>
  </init-param>
  <init-param>
   <param-name>forceEncoding</param-name>
   <param-value>true</param-value>
  </init-param>
 </filter>
 <filter-mapping>
  <filter-name>characterEncodingFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>

 <filter>
  <filter-name>CommonWebFilter</filter-name>
  <filter-class>com.tianhe.frm.web.CommonWebFilter</filter-class>
  <init-param>
   <param-name>interceptors</param-name>
   <param-value>com.tianhe.frm.web.WebContextFilterInterceptor</param-value>
  </init-param>
 </filter>
 <filter-mapping>
  <filter-name>CommonWebFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>

 <filter>
  <filter-name>securityFilter</filter-name>
  <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  <init-param>
   <param-name>targetBeanName</param-name>
   <param-value>springSecurityFilterChain</param-value>
  </init-param>
 </filter>
 <filter-mapping>
  <filter-name>securityFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>

 <servlet>
  <servlet-name>dispatcher</servlet-name>
  <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  <init-param>
   <param-name>contextConfigLocation</param-name>
   <param-value>/WEB-INF/dispatcher-servlet.xml</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
 </servlet>
 <servlet-mapping>
  <servlet-name>dispatcher</servlet-name>
  <url-pattern>*.do</url-pattern>
 </servlet-mapping>

 <!--
  <servlet> <servlet-name>remoting</servlet-name>
  <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping>
  <servlet-name>remoting</servlet-name>
  <url-pattern>/httpinvoker/*</url-pattern> </servlet-mapping>
  <servlet-mapping> <servlet-name>remoting</servlet-name>
  <url-pattern>/burlap/*</url-pattern> </servlet-mapping>
  <servlet-mapping> <servlet-name>remoting</servlet-name>
  <url-pattern>/hessian/*</url-pattern> </servlet-mapping>
 -->

 <mime-mapping>
  <extension>doc</extension>
  <mime-type>application/msword</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>xls</extension>
  <mime-type>application/vnd.ms-excel</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>ppt</extension>
  <mime-type>application/vnd.ms-powerpoint</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>zip</extension>
  <mime-type>application/zip</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>rar</extension>
  <mime-type>application/rar</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>pdf</extension>
  <mime-type>application/pdf</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>txt</extension>
  <mime-type>application/txt</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>chm</extension>
  <mime-type>application/mshelp</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>mp3</extension>
  <mime-type>audio/x-mpeg</mime-type>
 </mime-mapping>

 <error-page>
  <error-code>400</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>401</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>402</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>403</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>404</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>405</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>406</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>407</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>413</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>414</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-code>500</error-code>
  <location>/error.jsp</location>
 </error-page>
 <error-page>
  <error-type>javax.lang.Exception</error-type>
  <location>/error/jsp/errorException.jsp</location>
 </error-page>

 <welcome-file-list>
  <welcome-file>index.jsp</welcome-file>
 </welcome-file-list>

 <session-config>
  <session-timeout>10</session-timeout>
 </session-config>

 <!--
  <jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern>
  <el-ignored>true</el-ignored> </jsp-property-group> </jsp-config>
 -->

</web-app>



秋天的山谷 2012-07-07 14:56 發表評論
]]>
01 整合spring3和mybatis進行web開發之pom_xmlhttp://www.tkk7.com/tiandizhijian/articles/spring.html秋天的山谷秋天的山谷Sat, 07 Jul 2012 06:54:00 GMThttp://www.tkk7.com/tiandizhijian/articles/spring.htmlhttp://www.tkk7.com/tiandizhijian/comments/382442.htmlhttp://www.tkk7.com/tiandizhijian/articles/spring.html#Feedback0http://www.tkk7.com/tiandizhijian/comments/commentRss/382442.htmlhttp://www.tkk7.com/tiandizhijian/services/trackbacks/382442.html<project xmlns="http://maven.apache.org/POM/4.0.0  <modelVersion>4.0.0</modelVersion>
 <groupId>com.tianhe</groupId>
 <artifactId>com.tianhe.jxc</artifactId>
 <version>0.0.1-SNAPSHOT</version>
 <packaging>war</packaging>
 <name>com.tianhe.jxc Maven Webapp</name>
 <url>http://maven.apache.org</url>

 <!-- Shared version number properties -->
 <properties>
  <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <org.springframework.version>3.0.5.RELEASE</org.springframework.version>
 </properties>

 <build>
  <sourceDirectory>src/main/java</sourceDirectory>
  <testSourceDirectory>src/test/java</testSourceDirectory>
  <outputDirectory>target/classes</outputDirectory>
  <testOutputDirectory>target/test-classes</testOutputDirectory>
  <resources>
   <resource>
    <directory>src/main/java</directory>
   </resource>
   <resource>
    <directory>src/main/resources</directory>
    <excludes>
     <exclude>**/*.java</exclude>
    </excludes>
   </resource>
   <resource>
    <targetPath>lib</targetPath>
    <directory>lib</directory>
   </resource>
  </resources>
  <testResources>
   <testResource>
    <directory>src/test/java</directory>
   </testResource>
   <testResource>
    <directory>src/test/resources</directory>
    <excludes>
     <exclude>**/*.java</exclude>
    </excludes>
   </testResource>
  </testResources>
  <scriptSourceDirectory></scriptSourceDirectory>
  <filters></filters>
  <finalName>jxc</finalName>
 </build>

 <dependencies>
  <dependency>
   <groupId>commons-lang</groupId>
   <artifactId>commons-lang</artifactId>
   <version>2.6</version>
  </dependency>

  <dependency>
   <groupId>commons-beanutils</groupId>
   <artifactId>commons-beanutils</artifactId>
   <version>1.8.3</version>
  </dependency>

  <dependency>
   <groupId>commons-collections</groupId>
   <artifactId>commons-collections</artifactId>
   <version>3.1</version>
  </dependency>

  <dependency>
   <groupId>commons-dbcp</groupId>
   <artifactId>commons-dbcp</artifactId>
   <version>1.4</version>
  </dependency>

  <dependency>
   <groupId>commons-digester</groupId>
   <artifactId>commons-digester</artifactId>
   <version>1.8</version>
  </dependency>

  <dependency>
   <groupId>commons-fileupload</groupId>
   <artifactId>commons-fileupload</artifactId>
   <version>1.2.2</version>
  </dependency>
  <dependency>
   <groupId>commons-io</groupId>
   <artifactId>commons-io</artifactId>
   <version>1.4</version>
  </dependency>

  <dependency>
   <groupId>commons-logging</groupId>
   <artifactId>commons-logging</artifactId>
   <version>1.1.1</version>
  </dependency>

  <dependency>
   <groupId>commons-pool</groupId>
   <artifactId>commons-pool</artifactId>
   <version>1.5.4</version>
   <exclusions>
    <exclusion>
     <artifactId>commons-logging</artifactId>
     <groupId>commons-logging</groupId>
    </exclusion>
   </exclusions>
  </dependency>

  <!--
   Aspect Oriented Programming (AOP) Framework (depends on spring-core,
   spring-beans) Define this if you use Spring AOP APIs
   (org.springframework.aop.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-aop</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-aspects</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Bean Factory and JavaBeans utilities (depends on spring-core) Define
   this if you use Spring Bean APIs (org.springframework.beans.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-beans</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Application Context (depends on spring-core, spring-expression,
   spring-aop, spring-beans) This is the central artifact for Spring's
   Dependency Injection Container and is generally always defined
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Various Application Context utilities, including EhCache, JavaMail,
   Quartz, and Freemarker integration Define this if you need any of
   these integrations
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context-support</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Core utilities used by other modules. Define this if you use Spring
   Utility APIs (org.springframework.core.*/org.springframework.util.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-core</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Expression Language (depends on spring-core) Define this if you use
   Spring Expression APIs (org.springframework.expression.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-expression</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   JDBC Data Access Library (depends on spring-core, spring-beans,
   spring-context, spring-tx) Define this if you use Spring's
   JdbcTemplate API (org.springframework.jdbc.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-jdbc</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA, and
   iBatis. (depends on spring-core, spring-beans, spring-context,
   spring-tx) Define this if you need ORM (org.springframework.orm.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-orm</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Object-to-XML Mapping (OXM) abstraction and integration with JAXB,
   JiBX, Castor, XStream, and XML Beans. (depends on spring-core,
   spring-beans, spring-context) Define this if you need OXM
   (org.springframework.oxm.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-oxm</artifactId>
   <version>${org.springframework.version}</version>

  </dependency>

  <!--
   Transaction Management Abstraction (depends on spring-core,
   spring-beans, spring-aop, spring-context) Define this if you use
   Spring Transactions or DAO Exception Hierarchy
   (org.springframework.transaction.*/org.springframework.dao.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-tx</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Web application development utilities applicable to both Servlet and
   Portlet Environments (depends on spring-core, spring-beans,
   spring-context) Define this if you use Spring MVC, or wish to use
   Struts, JSF, or another web framework with Spring
   (org.springframework.web.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-web</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Spring MVC for Servlet Environments (depends on spring-core,
   spring-beans, spring-context, spring-web) Define this if you use
   Spring MVC with a Servlet Container such as Apache Tomcat
   (org.springframework.web.servlet.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-webmvc</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Spring MVC for Portlet Environments (depends on spring-core,
   spring-beans, spring-context, spring-web) Define this if you use
   Spring MVC with a Portlet Container
   (org.springframework.web.portlet.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-webmvc-portlet</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-acl</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-config</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-core</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-taglibs</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>
  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-web</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Support for testing Spring applications with tools such as JUnit and
   TestNG This artifact is generally always defined with a 'test' scope
   for the integration testing framework and unit testing stubs
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-test</artifactId>
   <version>${org.springframework.version}</version>
   <scope>test</scope>
  </dependency>

  <dependency>
   <groupId>net.sourceforge.stripes</groupId>
   <artifactId>stripes</artifactId>
   <version>1.5.4</version>
  </dependency>

  <dependency>
   <groupId>org.aspectj</groupId>
   <artifactId>aspectjrt</artifactId>
   <version>1.6.8</version>
  </dependency>

  <dependency>
   <groupId>org.aspectj</groupId>
   <artifactId>aspectjweaver</artifactId>
   <version>1.6.8</version>
  </dependency>

  <!--
   <dependency> <groupId>com.caucho</groupId>
   <artifactId>burlap</artifactId> <version>2.1.12</version>
   <scope>runtime</scope> </dependency> <dependency>
   <groupId>commons-httpclient</groupId>
   <artifactId>commons-httpclient</artifactId> <version>3.0.1</version>
   </dependency> <dependency> <groupId>com.caucho</groupId>
   <artifactId>hessian</artifactId> <version>3.1.3</version>
   </dependency> <dependency> <groupId>com.caucho</groupId>
   <artifactId>hessian</artifactId> <version>2.1.12</version>
   <scope>runtime</scope> </dependency> <dependency>
   <groupId>commons-httpclient</groupId>
   <artifactId>commons-httpclient</artifactId> <version>3.1</version>
   </dependency> <dependency> <groupId>net.sf.json-lib</groupId>
   <artifactId>json-lib</artifactId> <version>2.1</version>
   <classifier>jdk15</classifier> </dependency>
  -->

  <!-- spring mybatis -->
  <dependency>
   <groupId>cglib</groupId>
   <artifactId>cglib-nodep</artifactId>
   <version>2.2</version>
  </dependency>

  <dependency>
   <groupId>org.mybatis</groupId>
   <artifactId>mybatis</artifactId>
   <version>3.0.5</version>
  </dependency>

  <dependency>
   <groupId>org.mybatis</groupId>
   <artifactId>mybatis-spring</artifactId>
   <version>1.0.0</version>
  </dependency>


  <!-- mysql-jdbc -->
  <dependency>
   <groupId>mysql</groupId>
   <artifactId>mysql-connector-java</artifactId>
   <version>5.1.18</version>
  </dependency>

  <!-- java mail -->
  <dependency>
   <groupId>javax.mail</groupId>
   <artifactId>mail</artifactId>
   <version>1.4</version>
  </dependency>

  <!-- start web工程依賴包 -->
  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>servlet-api</artifactId>
   <version>2.5</version>
   <scope>provided</scope>
  </dependency>

  <dependency>
   <groupId>javax.servlet.jsp</groupId>
   <artifactId>jsp-api</artifactId>
   <version>2.1</version>
   <scope>provided</scope>
  </dependency>

  <!--
   <dependency> <groupId>javax.servlet</groupId>
   <artifactId>jstl</artifactId> <version>1.2</version>
   <scope>provided</scope> </dependency>
  -->

  <dependency>
   <groupId>jstl</groupId>
   <artifactId>jstl</artifactId>
   <version>1.1.2</version>
  </dependency>
  <dependency>
   <groupId>taglibs</groupId>
   <artifactId>standard</artifactId>
   <version>1.1.2</version>
  </dependency>

  <!-- end web工程依賴包 -->

  <dependency>
   <groupId>org.slf4j</groupId>
   <artifactId>slf4j-api</artifactId>
   <version>1.6.6</version>
  </dependency>

  <dependency>
   <groupId>org.slf4j</groupId>
   <artifactId>slf4j-log4j12</artifactId>
   <version>1.6.6</version>
  </dependency>

  <dependency>
   <groupId>log4j</groupId>
   <artifactId>log4j</artifactId>
   <version>1.2.16</version>
  </dependency>

  <dependency>
   <groupId>junit</groupId>
   <artifactId>junit</artifactId>
   <version>4.0</version>
   <scope>test</scope>
  </dependency>

 </dependencies>

</project>



秋天的山谷 2012-07-07 14:54 發表評論
]]>
主站蜘蛛池模板: 免费人成在线观看视频播放| 人禽杂交18禁网站免费| 亚洲永久网址在线观看| 国产在亚洲线视频观看| 成年人免费观看视频网站| 久久国产亚洲精品| eeuss影院ss奇兵免费com| 亚洲狠狠爱综合影院婷婷| 一级毛片免费全部播放| xx视频在线永久免费观看| 四虎影视在线永久免费观看| 亚洲AV成人无码网天堂| 19禁啪啪无遮挡免费网站| AV在线播放日韩亚洲欧| 国产日本亚洲一区二区三区| 99久久精品毛片免费播放| 亚洲人成人一区二区三区| 亚洲日韩精品无码AV海量| 色播在线永久免费视频| 亚洲中文字幕在线无码一区二区| 国产线视频精品免费观看视频| 人人狠狠综合久久亚洲婷婷| 亚洲一区免费在线观看| 亚洲人成人网站18禁| 亚洲精品色婷婷在线影院| 最近免费mv在线观看动漫 | 国产日韩精品无码区免费专区国产| 亚洲人成网亚洲欧洲无码久久| 在线看无码的免费网站| 亚洲最大的成人网| 国产亚洲色视频在线| 人妻无码中文字幕免费视频蜜桃 | 国产精品免费视频一区| 黄床大片免费30分钟国产精品| 久久久无码精品亚洲日韩按摩| 无码视频免费一区二三区| free哆拍拍免费永久视频| 亚洲国产精品日韩在线观看 | 亚洲国产精品久久久久婷婷软件| 毛片免费全部播放一级| 中国一级特黄的片子免费 |