亚洲国产成人精品无码区二本 ,亚洲综合色在线观看亚洲,亚洲丁香婷婷综合久久http://www.tkk7.com/liufuxi/category/55127.html技術點滴zh-cnMon, 04 Dec 2017 09:47:58 GMTMon, 04 Dec 2017 09:47:58 GMT60mysql的一次優(yōu)化http://www.tkk7.com/liufuxi/archive/2017/12/04/432934.htmlliufxliufxMon, 04 Dec 2017 09:16:00 GMThttp://www.tkk7.com/liufuxi/archive/2017/12/04/432934.htmlhttp://www.tkk7.com/liufuxi/comments/432934.htmlhttp://www.tkk7.com/liufuxi/archive/2017/12/04/432934.html#Feedback0http://www.tkk7.com/liufuxi/comments/commentRss/432934.htmlhttp://www.tkk7.com/liufuxi/services/trackbacks/432934.html

liufx 2017-12-04 17:16 發(fā)表評論
]]>
spring4 aop配置不起作用的兩種解決方法http://www.tkk7.com/liufuxi/archive/2016/11/22/432005.htmlliufxliufxTue, 22 Nov 2016 01:44:00 GMThttp://www.tkk7.com/liufuxi/archive/2016/11/22/432005.htmlhttp://www.tkk7.com/liufuxi/comments/432005.htmlhttp://www.tkk7.com/liufuxi/archive/2016/11/22/432005.html#Feedback0http://www.tkk7.com/liufuxi/comments/commentRss/432005.htmlhttp://www.tkk7.com/liufuxi/services/trackbacks/432005.html    spring-servlet.xml 中加入 <import resource="ApplicationContext.xml" />
    ApplicationContext.xml 中把其它的xml文件import進來
    web.xml 
    SpringMVC核心分發(fā)器 加入參數(shù) <param-value>classpath:spring-mvc.xml</param-value>
    不加載    <param-value>classpath*:/spring-context*.xml</param-value>
    controller/service等都在mvc中加載
     <context:component-scan base-package="com.mweb.**.controller" />
    <context:component-scan base-package="com.mweb.**.service" />。。。。需要加載的@Component等
    加入:
     <aop:aspectj-autoproxy proxy-target-class="true" />

二、spring-context*.xml / spring-mvc.xml 分開加載掃描的方法 
web.xml 中:
 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath*:/spring-context*.xml</param-value>
 </context-param>
 <listener> 
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>    必須加入才行
 </listener>

 <servlet>
  <servlet-name>spring</servlet-name>
  <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:spring-mvc.xml</param-value>
        </init-param>
  <load-on-startup>1</load-on-startup>
 </servlet>

spring-mvc.xml 中:

 <context:component-scan base-package="com.mweb.**.controller" />   掃描 controller

 <aop:aspectj-autoproxy />         aop 參考下面的也行

  1. <aop:aspectj-autoproxy proxy-target-class="true">  
  2.         <aop:include name="controllerAspect"/>     @Aspect聲明的類  
  3.     </aop:aspectj-autoproxy> 


 

spring-context.xml中:
     <context:component-scan base-package="com.mweb.**.extension,
                 com.mweb.**.service,
                 com.mweb.base.aspect,
                 com.mweb.base.shiro.realm" />
 <aop:aspectj-autoproxy proxy-target-class="true" />
這樣就可以了







liufx 2016-11-22 09:44 發(fā)表評論
]]>
jquery ajax 提交不起作用的解決方法http://www.tkk7.com/liufuxi/archive/2016/10/27/431936.htmlliufxliufxWed, 26 Oct 2016 23:46:00 GMThttp://www.tkk7.com/liufuxi/archive/2016/10/27/431936.htmlhttp://www.tkk7.com/liufuxi/comments/431936.htmlhttp://www.tkk7.com/liufuxi/archive/2016/10/27/431936.html#Feedback0http://www.tkk7.com/liufuxi/comments/commentRss/431936.htmlhttp://www.tkk7.com/liufuxi/services/trackbacks/431936.html

 

/** ajax登錄,并jquery md5 加密密碼 */
function loginsubmit() {
 var salt=$("#username").val(); 
    var pwd=$("#password").val();  
    var md5Pwd=$.md5(pwd+salt);
   
    var validateCode=$("#validateCode").val();
    var rememberMe=$("#rememberMe").val();
   
 data="username="+  salt
  + "&password=" + md5Pwd
  + "&validateCode=" + validateCode
  + "&rememberMe=" + rememberMe;

 $.ajax({
     type: "POST",
     url: "loginsubmit",
     dataType:'html',
     data: data,
     contentType:"application/x-www-form-urlencoded;charset=UTF-8",
     success: function(msg){
      if(msg=="ok") {
       location.href = "index";
      }else if (msg=="errorcode"){
       alert("驗證碼無效!");
      }
     },
     error: function (XMLHttpRequest, textStatus, errorThrown) {
               alert(XMLHttpRequest.status);
               alert(XMLHttpRequest.readyState);
               alert(textStatus);
           }
 });
}

以上代碼中url為 loginsubmit.html 去掉".html"即可提交 ,后臺代碼用的@ResponseBody注解




liufx 2016-10-27 07:46 發(fā)表評論
]]>
shiro 在spring的unauthorizedUrl配置后不起作用http://www.tkk7.com/liufuxi/archive/2016/10/26/431931.htmlliufxliufxWed, 26 Oct 2016 01:40:00 GMThttp://www.tkk7.com/liufuxi/archive/2016/10/26/431931.htmlhttp://www.tkk7.com/liufuxi/comments/431931.htmlhttp://www.tkk7.com/liufuxi/archive/2016/10/26/431931.html#Feedback0http://www.tkk7.com/liufuxi/comments/commentRss/431931.htmlhttp://www.tkk7.com/liufuxi/services/trackbacks/431931.html<property name="unauthorizedUrl" value="/sys/unauthorized"/> 不起作用

spring-mvc.xml 中加入:
 <!-- 異常處理 -->
 <bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
  <property name="exceptionMappings">
   <props>
    <prop key="org.apache.shiro.authz.UnauthorizedException">jsp/unauthorized</prop>
    <prop key="org.apache.shiro.authz.UnauthenticatedException">jsp/unauthorized</prop>
    <prop key="org.apache.shiro.authz.AuthorizationException">jsp/unauthorized</prop>           
    <prop key="java.lang.Throwable">jsp/unauthorized</prop>
   </props>
   </property>
 </bean>

如果還不能解決:可以看一下web.xml中是否有:
 <error-page>
  <error-code>400</error-code>
  <location>/WEB-INF/template/common/errorPage.jsp</location>
 </error-page>
 <error-page>
  <error-code>404</error-code>
  <location>/WEB-INF/template/common/errorPage.jsp</location>
 </error-page>
 <error-page>
  <error-code>500</error-code>
  <location>/sys/unauthorized.html</location>
 </error-page>
都屏蔽掉,應該就好了









liufx 2016-10-26 09:40 發(fā)表評論
]]>
tomcat 中出現(xiàn) consider increasing the maximum size of the cachehttp://www.tkk7.com/liufuxi/archive/2016/10/24/431919.htmlliufxliufxMon, 24 Oct 2016 08:06:00 GMThttp://www.tkk7.com/liufuxi/archive/2016/10/24/431919.htmlhttp://www.tkk7.com/liufuxi/comments/431919.htmlhttp://www.tkk7.com/liufuxi/archive/2016/10/24/431919.html#Feedback0http://www.tkk7.com/liufuxi/comments/commentRss/431919.htmlhttp://www.tkk7.com/liufuxi/services/trackbacks/431919.html在context.xml 中加入紅色的
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>

    <Resources cachingAllowed="true" cacheMaxSize="100000" />


liufx 2016-10-24 16:06 發(fā)表評論
]]>
主站蜘蛛池模板: 不卡一卡二卡三亚洲| 8x8×在线永久免费视频| 久久亚洲AV成人无码国产最大| 亚洲AV无码国产一区二区三区| 日韩免费精品视频| 久久亚洲AV无码西西人体| 日韩在线视频免费| 2019中文字幕在线电影免费| 少妇亚洲免费精品| 久久亚洲精品无码aⅴ大香| 美女被免费网站视频在线| 中文字幕在线免费| 亚洲宅男天堂a在线| 日本激情猛烈在线看免费观看| 四虎精品视频在线永久免费观看| 亚洲成AV人在线观看网址| 亚洲人成电影网站| 免费人成激情视频在线观看冫| AV免费网址在线观看| 亚洲精品国产成人99久久| 亚洲av最新在线观看网址| 免费无码成人AV在线播放不卡| 亚洲一区二区三区国产精品| 亚洲成a人无码亚洲成av无码 | 亚洲剧情在线观看| 成年女人免费v片| 亚洲第一福利视频| j8又粗又长又硬又爽免费视频 | 午夜免费不卡毛片完整版| 亚洲精品无码不卡| 成年女性特黄午夜视频免费看| 国产av无码专区亚洲av毛片搜| 亚洲视频免费在线看| 噜噜综合亚洲AV中文无码| 国产成A人亚洲精V品无码性色| 国产AV日韩A∨亚洲AV电影| 中文字幕精品亚洲无线码二区 | 久草免费手机视频| 亚洲色中文字幕无码AV| 国产高潮久久免费观看| 亚洲明星合成图综合区在线|