亚洲国产成人精品无码区二本 ,亚洲综合色在线观看亚洲,亚洲丁香婷婷综合久久http://m.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://m.tkk7.com/liufuxi/archive/2017/12/04/432934.htmlliufxliufxMon, 04 Dec 2017 09:16:00 GMThttp://m.tkk7.com/liufuxi/archive/2017/12/04/432934.htmlhttp://m.tkk7.com/liufuxi/comments/432934.htmlhttp://m.tkk7.com/liufuxi/archive/2017/12/04/432934.html#Feedback0http://m.tkk7.com/liufuxi/comments/commentRss/432934.htmlhttp://m.tkk7.com/liufuxi/services/trackbacks/432934.html

liufx 2017-12-04 17:16 發(fā)表評論
]]>
spring4 aop配置不起作用的兩種解決方法http://m.tkk7.com/liufuxi/archive/2016/11/22/432005.htmlliufxliufxTue, 22 Nov 2016 01:44:00 GMThttp://m.tkk7.com/liufuxi/archive/2016/11/22/432005.htmlhttp://m.tkk7.com/liufuxi/comments/432005.htmlhttp://m.tkk7.com/liufuxi/archive/2016/11/22/432005.html#Feedback0http://m.tkk7.com/liufuxi/comments/commentRss/432005.htmlhttp://m.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://m.tkk7.com/liufuxi/archive/2016/10/27/431936.htmlliufxliufxWed, 26 Oct 2016 23:46:00 GMThttp://m.tkk7.com/liufuxi/archive/2016/10/27/431936.htmlhttp://m.tkk7.com/liufuxi/comments/431936.htmlhttp://m.tkk7.com/liufuxi/archive/2016/10/27/431936.html#Feedback0http://m.tkk7.com/liufuxi/comments/commentRss/431936.htmlhttp://m.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://m.tkk7.com/liufuxi/archive/2016/10/26/431931.htmlliufxliufxWed, 26 Oct 2016 01:40:00 GMThttp://m.tkk7.com/liufuxi/archive/2016/10/26/431931.htmlhttp://m.tkk7.com/liufuxi/comments/431931.htmlhttp://m.tkk7.com/liufuxi/archive/2016/10/26/431931.html#Feedback0http://m.tkk7.com/liufuxi/comments/commentRss/431931.htmlhttp://m.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://m.tkk7.com/liufuxi/archive/2016/10/24/431919.htmlliufxliufxMon, 24 Oct 2016 08:06:00 GMThttp://m.tkk7.com/liufuxi/archive/2016/10/24/431919.htmlhttp://m.tkk7.com/liufuxi/comments/431919.htmlhttp://m.tkk7.com/liufuxi/archive/2016/10/24/431919.html#Feedback0http://m.tkk7.com/liufuxi/comments/commentRss/431919.htmlhttp://m.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ā)表評論
]]>
主站蜘蛛池模板: igao激情在线视频免费| 59pao成国产成视频永久免费| 成人毛片免费在线观看| 亚洲沟沟美女亚洲沟沟| 8888四色奇米在线观看免费看| 亚洲av永久无码精品古装片 | 亚洲成A∨人片在线观看不卡| 久久精品国产影库免费看| 亚洲精品国产精品乱码不99| 国产成人无码精品久久久免费| 91麻豆精品国产自产在线观看亚洲 | 青青草97国产精品免费观看| 免费国内精品久久久久影院| a级毛片免费观看在线| 好看的电影网站亚洲一区| 秋霞人成在线观看免费视频| 久久亚洲精品无码VA大香大香| 中文字幕成人免费视频| 亚洲中文字幕在线无码一区二区 | www.999精品视频观看免费| 久久久久亚洲国产| 国产成人精品123区免费视频| 无套内射无矿码免费看黄| 最新精品亚洲成a人在线观看| 热99RE久久精品这里都是精品免费| 亚洲精品欧洲精品| 四虎成人精品一区二区免费网站| 精品成人一区二区三区免费视频 | 亚洲成AV人综合在线观看| 国产成人免费高清激情视频| 国产午夜亚洲精品不卡电影| 亚洲一区精品无码| 中文字幕影片免费在线观看| 特a级免费高清黄色片| 久久综合日韩亚洲精品色| 蜜桃视频在线观看免费网址入口| 一级黄色免费大片| 亚洲国产精品白丝在线观看| 亚洲国产精品嫩草影院久久| 2019中文字幕免费电影在线播放| 精品久久久久久久久亚洲偷窥女厕|