最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

springmvc+shiro+maven 實(shí)現(xiàn)登錄認(rèn)證與權(quán)限授權(quán)管理

 更新時(shí)間:2017年09月21日 11:49:11   作者:bug-404  
Shiro 是一個(gè) Apache 下的一開(kāi)源項(xiàng)目項(xiàng)目,旨在簡(jiǎn)化身份驗(yàn)證和授權(quán),下面通過(guò)實(shí)例代碼給大家分享springmvc+shiro+maven 實(shí)現(xiàn)登錄認(rèn)證與權(quán)限授權(quán)管理,感興趣的朋友一起看看吧

Shiro 是Shiro 是一個(gè) Apache 下的一開(kāi)源項(xiàng)目項(xiàng)目,旨在簡(jiǎn)化身份驗(yàn)證和授權(quán)。

 1:shiro的配置,通過(guò)maven加入shiro相關(guān)jar包

<!-- shiro --> 
 <dependency> 
  <groupId>org.apache.shiro</groupId> 
  <artifactId>shiro-core</artifactId> 
  <version>1.2.1</version> 
 </dependency> 
 <dependency> 
  <groupId>org.apache.shiro</groupId> 
  <artifactId>shiro-web</artifactId> 
  <version>1.2.1</version> 
 </dependency> 
 <dependency> 
  <groupId>org.apache.shiro</groupId> 
  <artifactId>shiro-ehcache</artifactId> 
  <version>1.2.1</version> 
 </dependency> 
 <dependency> 
  <groupId>org.apache.shiro</groupId> 
  <artifactId>shiro-spring</artifactId> 
  <version>1.2.1</version> 
 </dependency> 

2 :在web.xml中添加shiro過(guò)濾器

<!-- 配置shiro的核心攔截器 --> 
 <filter> 
  <filter-name>shiroFilter</filter-name> 
  <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> 
 </filter> 
 <filter-mapping> 
  <filter-name>shiroFilter</filter-name> 
  <url-pattern>/admin/*</url-pattern> 
 </filter-mapping> 

3: springmvc中對(duì)shiro配置

<beans xmlns="http://www.springframework.org/schema/beans" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" 
 xmlns:context="http://www.springframework.org/schema/context" 
 xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" 
 xsi:schemaLocation="http://www.springframework.org/schema/beans  
  http://www.springframework.org/schema/beans/spring-beans-3.2.xsd  
  http://www.springframework.org/schema/mvc  
  http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd  
  http://www.springframework.org/schema/context  
  http://www.springframework.org/schema/context/spring-context-3.2.xsd  
  http://www.springframework.org/schema/aop  
  http://www.springframework.org/schema/aop/spring-aop-3.2.xsd  
  http://www.springframework.org/schema/tx  
  http://www.springframework.org/schema/tx/spring-tx-3.2.xsd "> 
 <!-- web.xml中shiro的filter對(duì)應(yīng)的bean --> 
 <bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean"> 
  <!-- 管理器,必須設(shè)置 --> 
  <property name="securityManager" ref="securityManager" /> 
  <!-- 攔截到,跳轉(zhuǎn)到的地址,通過(guò)此地址去認(rèn)證 --> 
  <property name="loginUrl" value="/admin/login.do" /> 
  <!-- 認(rèn)證成功統(tǒng)一跳轉(zhuǎn)到/admin/index.do,建議不配置,shiro認(rèn)證成功自動(dòng)到上一個(gè)請(qǐng)求路徑 --> 
  <property name="successUrl" value="/admin/index.do" /> 
  <!-- 通過(guò)unauthorizedUrl指定沒(méi)有權(quán)限操作時(shí)跳轉(zhuǎn)頁(yè)面 --> 
  <property name="unauthorizedUrl" value="/refuse.jsp" /> 
  <!-- 自定義filter,可用來(lái)更改默認(rèn)的表單名稱(chēng)配置 --> 
  <property name="filters"> 
   <map> 
    <!-- 將自定義 的FormAuthenticationFilter注入shiroFilter中 --> 
    <entry key="authc" value-ref="formAuthenticationFilter" /> 
   </map> 
  </property> 
  <property name="filterChainDefinitions"> 
   <value> 
    <!-- 對(duì)靜態(tài)資源設(shè)置匿名訪(fǎng)問(wèn) --> 
    /images/** = anon 
    /js/** = anon 
    /styles/** = anon 
    <!-- 驗(yàn)證碼,可匿名訪(fǎng)問(wèn) --> 
    /validatecode.jsp = anon 
    <!-- 請(qǐng)求 logout.do地址,shiro去清除session --> 
    /admin/logout.do = logout 
    <!--商品查詢(xún)需要商品查詢(xún)權(quán)限 ,取消url攔截配置,使用注解授權(quán)方式 --> 
    <!-- /items/queryItems.action = perms[item:query] /items/editItems.action  
     = perms[item:edit] --> 
    <!-- 配置記住我或認(rèn)證通過(guò)可以訪(fǎng)問(wèn)的地址 --> 
    /welcome.jsp = user 
    /admin/index.do = user 
    <!-- /** = authc 所有url都必須認(rèn)證通過(guò)才可以訪(fǎng)問(wèn) --> 
    /** = authc 
   </value> 
  </property> 
 </bean> 
 <!-- securityManager安全管理器 --> 
 <bean id="securityManager" class="org.apache.shiro.web.mgt.DefaultWebSecurityManager"> 
  <property name="realm" ref="customRealm" /> 
  <!-- 注入緩存管理器 --> 
  <property name="cacheManager" ref="cacheManager" /> 
  <!-- 注入session管理器 --> 
  <!-- <property name="sessionManager" ref="sessionManager" /> --> 
  <!-- 記住我 --> 
  <property name="rememberMeManager" ref="rememberMeManager" /> 
 </bean> 
 <!-- 自定義realm --> 
 <bean id="customRealm" class="com.zhijianj.stucheck.shiro.CustomRealm"> 
  <!-- 將憑證匹配器設(shè)置到realm中,realm按照憑證匹配器的要求進(jìn)行散列 --> 
  <!-- <property name="credentialsMatcher" ref="credentialsMatcher" /> --> 
 </bean> 
 <!-- 憑證匹配器 --> 
 <bean id="credentialsMatcher" 
  class="org.apache.shiro.authc.credential.HashedCredentialsMatcher"> 
  <!-- 選用MD5散列算法 --> 
  <property name="hashAlgorithmName" value="md5" /> 
  <!-- 進(jìn)行一次加密 --> 
  <property name="hashIterations" value="1" /> 
 </bean> 
 <!-- 自定義form認(rèn)證過(guò)慮器 --> 
 <!-- 基于Form表單的身份驗(yàn)證過(guò)濾器,不配置將也會(huì)注冊(cè)此過(guò)慮器,表單中的用戶(hù)賬號(hào)、密碼及l(fā)oginurl將采用默認(rèn)值,建議配置 --> 
 <!-- 可通過(guò)此配置,判斷驗(yàn)證碼 --> 
 <bean id="formAuthenticationFilter" 
  class="com.zhijianj.stucheck.shiro.CustomFormAuthenticationFilter "> 
  <!-- 表單中賬號(hào)的input名稱(chēng),默認(rèn)為username --> 
  <property name="usernameParam" value="username" /> 
  <!-- 表單中密碼的input名稱(chēng),默認(rèn)為password --> 
  <property name="passwordParam" value="password" /> 
  <!-- 記住我input的名稱(chēng),默認(rèn)為rememberMe --> 
  <property name="rememberMeParam" value="rememberMe" /> 
 </bean> 
 <!-- 會(huì)話(huà)管理器 --> 
 <bean id="sessionManager" 
  class="org.apache.shiro.web.session.mgt.DefaultWebSessionManager"> 
  <!-- session的失效時(shí)長(zhǎng),單位毫秒 --> 
  <property name="globalSessionTimeout" value="600000" /> 
  <!-- 刪除失效的session --> 
  <property name="deleteInvalidSessions" value="true" /> 
 </bean> 
 <!-- 緩存管理器 --> 
 <bean id="cacheManager" class="org.apache.shiro.cache.ehcache.EhCacheManager"> 
  <property name="cacheManagerConfigFile" value="classpath:shiro-ehcache.xml" /> 
 </bean> 
 <!-- rememberMeManager管理器,寫(xiě)cookie,取出cookie生成用戶(hù)信息 --> 
 <bean id="rememberMeManager" class="org.apache.shiro.web.mgt.CookieRememberMeManager"> 
  <property name="cookie" ref="rememberMeCookie" /> 
 </bean> 
 <!-- 記住我cookie --> 
 <bean id="rememberMeCookie" class="org.apache.shiro.web.servlet.SimpleCookie"> 
  <!-- rememberMe是cookie的名字 --> 
  <constructor-arg value="rememberMe" /> 
  <!-- 記住我cookie生效時(shí)間30天 --> 
  <property name="maxAge" value="2592000" /> 
 </bean> 
</beans> 

4 :自定義Realm編碼

public class CustomRealm extends AuthorizingRealm { 
 // 設(shè)置realm的名稱(chēng) 
 @Override 
 public void setName(String name) { 
  super.setName("customRealm"); 
 } 
 @Autowired 
 private AdminUserService adminUserService; 
 /** 
  * 認(rèn)證 
  */ 
 @Override 
 protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException { 
  // token中包含用戶(hù)輸入的用戶(hù)名和密碼 
  // 第一步從token中取出用戶(hù)名 
  String userName = (String) token.getPrincipal(); 
  // 第二步:根據(jù)用戶(hù)輸入的userCode從數(shù)據(jù)庫(kù)查詢(xún) 
  TAdminUser adminUser = adminUserService.getAdminUserByUserName(userName); 
  // 如果查詢(xún)不到返回null 
  if (adminUser == null) {// 
   return null; 
  } 
  // 獲取數(shù)據(jù)庫(kù)中的密碼 
  String password = adminUser.getPassword(); 
  /** 
   * 認(rèn)證的用戶(hù),正確的密碼 
   */ 
  AuthenticationInfo authcInfo = new SimpleAuthenticationInfo(adminUser, password, this.getName()); 
    //MD5 加密+加鹽+多次加密 
//<span style="color:#ff0000;">SimpleAuthenticationInfo authcInfo = new SimpleAuthenticationInfo(adminUser, password,ByteSource.Util.bytes(salt), this.getName());</span> 
  return authcInfo; 
 } 
 /** 
  * 授權(quán),只有成功通過(guò)<span style="font-family: Arial, Helvetica, sans-serif;">doGetAuthenticationInfo方法的認(rèn)證后才會(huì)執(zhí)行。</span> 
  */ 
 @Override 
 protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { 
  // 從 principals獲取主身份信息 
  // 將getPrimaryPrincipal方法返回值轉(zhuǎn)為真實(shí)身份類(lèi)型(在上邊的doGetAuthenticationInfo認(rèn)證通過(guò)填充到SimpleAuthenticationInfo中身份類(lèi)型), 
  TAdminUser activeUser = (TAdminUser) principals.getPrimaryPrincipal(); 
  // 根據(jù)身份信息獲取權(quán)限信息 
  // 從數(shù)據(jù)庫(kù)獲取到權(quán)限數(shù)據(jù) 
  TAdminRole adminRoles = adminUserService.getAdminRoles(activeUser); 
  // 單獨(dú)定一個(gè)集合對(duì)象 
  List<String> permissions = new ArrayList<String>(); 
  if (adminRoles != null) { 
   permissions.add(adminRoles.getRoleKey()); 
  } 
  // 查到權(quán)限數(shù)據(jù),返回授權(quán)信息(要包括 上邊的permissions) 
  SimpleAuthorizationInfo simpleAuthorizationInfo = new SimpleAuthorizationInfo(); 
  // 將上邊查詢(xún)到授權(quán)信息填充到simpleAuthorizationInfo對(duì)象中 
  simpleAuthorizationInfo.addStringPermissions(permissions); 
  return simpleAuthorizationInfo; 
 } 
 // 清除緩存 
 public void clearCached() { 
  PrincipalCollection principals = SecurityUtils.getSubject().getPrincipals(); 
  super.clearCache(principals); 
 } 
} 

5 緩存配置

ehcache.xml代碼如下:

<ehcache updateCheck="false" name="shiroCache"> 
 <defaultCache 
   maxElementsInMemory="10000" 
   eternal="false" 
   timeToIdleSeconds="120" 
   timeToLiveSeconds="120" 
   overflowToDisk="false" 
   diskPersistent="false" 
   diskExpiryThreadIntervalSeconds="120" 
   /> 
</ehcache> 

通過(guò)使用ehache中就避免第次都向服務(wù)器發(fā)送權(quán)限授權(quán)(doGetAuthorizationInfo)的請(qǐng)求。

6.自定義表單編碼過(guò)濾器

CustomFormAuthenticationFilter代碼,認(rèn)證之前調(diào)用,可用于驗(yàn)證碼校驗(yàn)

public class CustomFormAuthenticationFilter extends FormAuthenticationFilter { 
 // 原FormAuthenticationFilter的認(rèn)證方法 
 @Override 
 protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception { 
  // 在這里進(jìn)行驗(yàn)證碼的校驗(yàn) 
 
  // 從session獲取正確驗(yàn)證碼 
  HttpServletRequest httpServletRequest = (HttpServletRequest) request; 
  HttpSession session = httpServletRequest.getSession(); 
  // 取出session的驗(yàn)證碼(正確的驗(yàn)證碼) 
  String validateCode = (String) session.getAttribute("validateCode");  
  // 取出頁(yè)面的驗(yàn)證碼 
  // 輸入的驗(yàn)證和session中的驗(yàn)證進(jìn)行對(duì)比 
  String randomcode = httpServletRequest.getParameter("randomcode"); 
  if (randomcode != null && validateCode != null && !randomcode.equals(validateCode)) { 
   // 如果校驗(yàn)失敗,將驗(yàn)證碼錯(cuò)誤失敗信息,通過(guò)shiroLoginFailure設(shè)置到request中 
   httpServletRequest.setAttribute("shiroLoginFailure", "randomCodeError"); 
   // 拒絕訪(fǎng)問(wèn),不再校驗(yàn)賬號(hào)和密碼 
   return true; 
  } 
  return super.onAccessDenied(request, response); 
 } 
} 

在此符上驗(yàn)證碼jsp界面的代碼  validatecode.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8" 
 pageEncoding="UTF-8"%> 
<%@ page import="java.util.Random"%> 
<%@ page import="java.io.OutputStream"%> 
<%@ page import="java.awt.Color"%> 
<%@ page import="java.awt.Font"%> 
<%@ page import="java.awt.Graphics"%> 
<%@ page import="java.awt.image.BufferedImage"%> 
<%@ page import="javax.imageio.ImageIO"%> 
<% 
 int width = 60; 
 int height = 32; 
 //create the image 
 BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); 
 Graphics g = image.getGraphics(); 
 // set the background color 
 g.setColor(new Color(0xDCDCDC)); 
 g.fillRect(0, 0, width, height); 
 // draw the border 
 g.setColor(Color.black); 
 g.drawRect(0, 0, width - 1, height - 1); 
 // create a random instance to generate the codes 
 Random rdm = new Random(); 
 String hash1 = Integer.toHexString(rdm.nextInt()); 
 // make some confusion 
 for (int i = 0; i < 50; i++) { 
  int x = rdm.nextInt(width); 
  int y = rdm.nextInt(height); 
  g.drawOval(x, y, 0, 0); 
 } 
 // generate a random code 
 String capstr = hash1.substring(0, 4); 
 //將生成的驗(yàn)證碼存入session 
 session.setAttribute("validateCode", capstr); 
 g.setColor(new Color(0, 100, 0)); 
 g.setFont(new Font("Candara", Font.BOLD, 24)); 
 g.drawString(capstr, 8, 24); 
 g.dispose(); 
 //輸出圖片 
 response.setContentType("image/jpeg"); 
 out.clear(); 
 out = pageContext.pushBody(); 
 OutputStream strm = response.getOutputStream(); 
 ImageIO.write(image, "jpeg", strm); 
 strm.close(); 
%> 

7.登錄控制器方法

/** 
 * 到登錄界面 
 * 
 * @return 
 * @throws Exception 
 */ 
@RequestMapping("login.do") 
public String adminPage(HttpServletRequest request) throws Exception { 
 // 如果登陸失敗從request中獲取認(rèn)證異常信息,shiroLoginFailure就是shiro異常類(lèi)的全限定名 
 String exceptionClassName = (String) request.getAttribute("shiroLoginFailure"); 
 // 根據(jù)shiro返回的異常類(lèi)路徑判斷,拋出指定異常信息 
 if (exceptionClassName != null) { 
  if (UnknownAccountException.class.getName().equals(exceptionClassName)) { 
   // 最終會(huì)拋給異常處理器 
   throw new CustomJsonException("賬號(hào)不存在"); 
  } else if (IncorrectCredentialsException.class.getName().equals(exceptionClassName)) { 
   throw new CustomJsonException("用戶(hù)名/密碼錯(cuò)誤"); 
  } else if ("randomCodeError".equals(exceptionClassName)) { 
   throw new CustomJsonException("驗(yàn)證碼錯(cuò)誤 "); 
  } else { 
   throw new Exception();// 最終在異常處理器生成未知錯(cuò)誤 
  } 
 } 
 // 此方法不處理登陸成功(認(rèn)證成功),shiro認(rèn)證成功會(huì)自動(dòng)跳轉(zhuǎn)到上一個(gè)請(qǐng)求路徑 
 // 登陸失敗還到login頁(yè)面 
 return "admin/login"; 
} 

8.用戶(hù)回顯Controller

當(dāng)用戶(hù)登錄認(rèn)證成功后,CustomRealm在調(diào)用完doGetAuthenticationInfo時(shí),通過(guò)

AuthenticationInfo authcInfo = new SimpleAuthenticationInfo(adminUser, password, this.getName()); 
 return authcInfo; 

SimpleAuthenticationInfo構(gòu)造參數(shù)的第一個(gè)參數(shù)傳入一個(gè)用戶(hù)的對(duì)象,之后,可通過(guò)Subject subject = SecurityUtils.getSubject();中的subject.getPrincipal()獲取到此對(duì)象。所以需要回顯用戶(hù)信息時(shí),我這樣調(diào)用的

@RequestMapping("index.do") 
public String index(Model model) { 
 //從shiro的session中取activeUser 
 Subject subject = SecurityUtils.getSubject(); 
 //取身份信息 
 TAdminUser adminUser = (TAdminUser) subject.getPrincipal(); 
 //通過(guò)model傳到頁(yè)面 
 model.addAttribute("adminUser", adminUser); 
 return "admin/index"; 
} 

9.在jsp頁(yè)面中控制權(quán)限

先引入shiro的頭文件

<!-- shiro頭引入 --> 
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%> 

采用shiro標(biāo)簽對(duì)權(quán)限進(jìn)行處理

<!-- 有curd權(quán)限才顯示修改鏈接,沒(méi)有該 權(quán)限不顯示,相當(dāng) 于if(hasPermission(curd)) --> 
    <shiro:hasPermission name="curd"> 
     <BR /> 
     我擁有超級(jí)的增刪改查權(quán)限額 
    </shiro:hasPermission> 

10.在Controller控制權(quán)限

通過(guò)@RequiresPermissions注解,指定執(zhí)行此controller中某個(gè)請(qǐng)求方法需要的權(quán)限

@RequestMapping("/queryInfo.do") 
 @RequiresPermissions("q")//執(zhí)行需要"q"權(quán)限 
 public ModelAndView queryItems(HttpServletRequest request) throws Exception { } 

11.MD5加密加鹽處理

這里以修改密碼為例,通過(guò)獲取新的密碼(明文)后通過(guò)MD5加密+加鹽+3次加密為例

@RequestMapping("updatePassword.do") 
 @ResponseBody 
 public String updateAdminUserPassword(String newPassword) { 
  // 從shiro的session中取activeUser 
  Subject subject = SecurityUtils.getSubject(); 
  // 取身份信息 
  TAdminUser adminUser = (TAdminUser) subject.getPrincipal(); 
  // 生成salt,隨機(jī)生成 
  SecureRandomNumberGenerator secureRandomNumberGenerator = new SecureRandomNumberGenerator(); 
  String salt = secureRandomNumberGenerator.nextBytes().toHex(); 
  Md5Hash md5 = new Md5Hash(newPassword, salt, 3); 
  String newMd5Password = md5.toHex(); 
  // 設(shè)置新密碼 
  adminUser.setPassword(newMd5Password); 
  // 設(shè)置鹽 
  adminUser.setSalt(salt); 
  adminUserService.updateAdminUserPassword(adminUser); 
  return newPassword; 
 } 

總結(jié)

以上所述是小編給大家介紹的springmvc+shiro+maven 實(shí)現(xiàn)登錄認(rèn)證與權(quán)限授權(quán)管理,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

  • SpringBoot與SpringMVC第一講

    SpringBoot與SpringMVC第一講

    SpringMVC全名應(yīng)該叫做SpringWebMVC,它其實(shí)是基于servlet來(lái)構(gòu)建的一個(gè)原始web框架從一開(kāi)始就包含在了spring框架中,下面通過(guò)實(shí)例代碼給大家介紹SpringBoot與SpringMVC的相關(guān)知識(shí),感興趣的朋友跟隨小編一起看看吧
    2024-05-05
  • maven 打包項(xiàng)目的幾種方式

    maven 打包項(xiàng)目的幾種方式

    maven目前在web上面的使用方式很普遍,而打包的方式也存在很多方式,本文就詳細(xì)的介紹了三種方式,具有一定的參考價(jià)值,感興趣的可以了解下
    2021-06-06
  • java使用spring實(shí)現(xiàn)發(fā)送mail的方法

    java使用spring實(shí)現(xiàn)發(fā)送mail的方法

    這篇文章主要介紹了java使用spring實(shí)現(xiàn)發(fā)送mail的方法,涉及java基于spring框架發(fā)送郵件的相關(guān)技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下
    2015-10-10
  • javabean servlet jsp實(shí)現(xiàn)分頁(yè)功能代碼解析

    javabean servlet jsp實(shí)現(xiàn)分頁(yè)功能代碼解析

    這篇文章主要為大家詳細(xì)解析了javabean servlet jsp實(shí)現(xiàn)分頁(yè)功能代碼,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2016-09-09
  • java調(diào)用Oracle存儲(chǔ)過(guò)程的方法實(shí)例

    java調(diào)用Oracle存儲(chǔ)過(guò)程的方法實(shí)例

    這篇文章介紹了java調(diào)用Oracle存儲(chǔ)過(guò)程的方法實(shí)例,有需要的朋友可以參考一下
    2013-09-09
  • Springboot導(dǎo)出文件,前端下載文件方式

    Springboot導(dǎo)出文件,前端下載文件方式

    這篇文章主要介紹了Springboot導(dǎo)出文件,前端下載文件方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2021-12-12
  • JAVA動(dòng)態(tài)代理模式(從現(xiàn)實(shí)生活角度理解代碼原理)

    JAVA動(dòng)態(tài)代理模式(從現(xiàn)實(shí)生活角度理解代碼原理)

    本文主要介紹了JAVA動(dòng)態(tài)代理模式(從現(xiàn)實(shí)生活角度理解代碼原理)的相關(guān)知識(shí)。具有很好的參考價(jià)值。下面跟著小編一起來(lái)看下吧
    2017-03-03
  • Java定時(shí)任務(wù)取消的示例代碼

    Java定時(shí)任務(wù)取消的示例代碼

    java定時(shí)任務(wù)如何取消,并比如,我之前想每周二晚上6點(diǎn)自動(dòng)生成一條devops流水線(xiàn),現(xiàn)在我想停掉,下面給大家分享java定時(shí)任務(wù)取消的示例代碼,演示如何創(chuàng)建一個(gè)每周二晚上6點(diǎn)自動(dòng)生成一條devops流水線(xiàn)的定時(shí)任務(wù),感興趣的朋友一起看看吧
    2024-02-02
  • 爬蟲(chóng)技術(shù)詳解

    爬蟲(chóng)技術(shù)詳解

    本文全面的介紹了爬蟲(chóng)的原理、技術(shù)現(xiàn)狀、以及目前仍面臨的問(wèn)題。具有很好的參考價(jià)值。下面跟著小編一起來(lái)看下吧
    2017-03-03
  • Java開(kāi)發(fā)支付寶PC支付完整版

    Java開(kāi)發(fā)支付寶PC支付完整版

    這篇文章主要介紹了Java開(kāi)發(fā)支付寶PC支付完整版,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2019-08-08

最新評(píng)論

临沭县| 荃湾区| 招远市| 历史| 彰化市| 翁牛特旗| 德江县| 盐亭县| 林州市| 琼结县| 九龙县| 凤翔县| 松桃| 手游| 开化县| 新巴尔虎右旗| 博白县| 贵德县| 湖南省| 新竹县| 溧阳市| 仁化县| 雷山县| 深水埗区| 拜城县| 普洱| 桃园县| 阿鲁科尔沁旗| 南江县| 昌乐县| 陆川县| 巴塘县| 临澧县| 边坝县| 昌图县| 北海市| 东明县| 民和| 锦州市| 德兴市| 洪泽县|