基于springboot+bootstrap+mysql+redis搭建一套完整的权限架构【二】【整合springSecurity】

  若需要整合我们的springSecurity,一种是直接使用springSecurity自带的权限架构,另外一种是使用我们自己设计的数据架构,本文所阐述的就是使用自己设计的RBAC权限架构,因此我们要事先设计好用户权限架构的PDM如下图所示,并创建我们的数据库:数据库名:hyll_springboot,以及我们的三张表:user、user_role、user_associate_role:

接着打开我们的工程新建如下工程的目录:

接着在我们的sys包底下新建entity和dao这两个包:

        同时打开我们的pom.xml引入该工程所需要的所有依赖,接着我们的IDEA会弹出一个框,我们点击import就自动会去maven给我们下载依赖,若你有自己的私有maven则将其指向自己的私有maven,若这边有缺少不懂的直接去我的第一章的github上的源代码中自己去copy下来:

 

 
  1. <properties>

  2. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

  3. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

  4. <java.version>1.8</java.version>

  5. <mysql.version>5.1.41</mysql.version>

  6. <guava.version>18.0</guava.version>

  7. <org.mapstruct.version>1.1.0.Final</org.mapstruct.version>

  8. </properties>

  9.  
  10. <dependencies>

  11.  
  12. <!-- 集成Druid数据库连接池和监控 -->

  13. <dependency>

  14. <groupId>com.alibaba</groupId>

  15. <artifactId>druid-spring-boot-starter</artifactId>

  16. <version>1.1.3</version>

  17. </dependency>

  18.  
  19. <!-- 引入mybatis的支持 -->

  20. <dependency>

  21. <groupId>org.mybatis.spring.boot</groupId>

  22. <artifactId>mybatis-spring-boot-starter</artifactId>

  23. <version>1.3.1</version>

  24. </dependency>

  25.  
  26. <!-- 引入mapstruct的支持 -->

  27. <dependency>

  28. <groupId>org.mapstruct</groupId>

  29. <artifactId>mapstruct-jdk8</artifactId>

  30. <version>${org.mapstruct.version}</version>

  31. </dependency>

  32.  
  33. <dependency>

  34. <groupId>org.mapstruct</groupId>

  35. <artifactId>mapstruct-processor</artifactId>

  36. <version>${org.mapstruct.version}</version>

  37. </dependency>

  38.  
  39. <!-- Java EE 6 规范 JSR 330 -->

  40. <dependency>

  41. <groupId>javax.inject</groupId>

  42. <artifactId>javax.inject</artifactId>

  43. <version>1</version>

  44. </dependency>

  45.  
  46. <!-- 引入json的依赖 classifier必须要加这个是json的jdk的依赖-->

  47. <dependency>

  48. <groupId>net.sf.json-lib</groupId>

  49. <artifactId>json-lib</artifactId>

  50. <version>2.4</version>

  51. <classifier>jdk15</classifier>

  52. </dependency>

  53.  
  54.  
  55. <!-- 开启spring-websocket的支持 -->

  56. <dependency>

  57. <groupId>org.springframework.boot</groupId>

  58. <artifactId>spring-boot-starter-websocket</artifactId>

  59. </dependency>

  60.  
  61. <!-- 开启spring-security的支持 -->

  62. <dependency>

  63. <groupId>org.springframework.boot</groupId>

  64. <artifactId>spring-boot-starter-security</artifactId>

  65. </dependency>

  66. <!-- 开启thymeleaf的spring-security的支持 -->

  67. <dependency>

  68. <groupId>org.thymeleaf.extras</groupId>

  69. <artifactId>thymeleaf-extras-springsecurity4</artifactId>

  70. </dependency>

  71.  
  72. <!-- 表示对thymeleaf模板不再是用默认的HTML5标准来做严格限制 -->

  73. <dependency>

  74. <groupId>net.sourceforge.nekohtml</groupId>

  75. <artifactId>nekohtml</artifactId>

  76. <version>1.9.22</version>

  77. </dependency>

  78.  
  79. <!-- 添加对spring-redis的支持 -->

  80. <dependency>

  81. <groupId>org.springframework.boot</groupId>

  82. <artifactId>spring-boot-starter-redis</artifactId>

  83. <version>1.3.8.RELEASE</version>

  84. </dependency>

  85.  
  86. <!-- 添加对spring-cache的支持 -->

  87. <dependency>

  88. <groupId>org.springframework.boot</groupId>

  89. <artifactId>spring-boot-starter-cache</artifactId>

  90. </dependency>

  91.  
  92. <dependency>

  93. <groupId>net.sf.ehcache</groupId>

  94. <artifactId>ehcache</artifactId>

  95. </dependency>

  96.  
  97. <!-- 添加对spring-data-rest的支持 -->

  98. <dependency>

  99. <groupId>org.springframework.boot</groupId>

  100. <artifactId>spring-boot-starter-data-rest</artifactId>

  101. </dependency>

  102.  
  103. <!-- 添加对spring-jpa的支持 -->

  104. <dependency>

  105. <groupId>org.springframework.boot</groupId>

  106. <artifactId>spring-boot-starter-data-jpa</artifactId>

  107. </dependency>

  108.  
  109. <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->

  110. <dependency>

  111. <groupId>mysql</groupId>

  112. <artifactId>mysql-connector-java</artifactId>

  113. <version>${mysql.version}</version>

  114. </dependency>

  115.  
  116. <dependency>

  117. <groupId>com.google.guava</groupId>

  118. <artifactId>guava</artifactId>

  119. <version>${guava.version}</version>

  120. </dependency>

  121.  
  122. <!-- 添加对thymeleaf的支持 -->

  123. <dependency>

  124. <groupId>org.springframework.boot</groupId>

  125. <artifactId>spring-boot-starter-thymeleaf</artifactId>

  126. </dependency>

  127.  
  128. <!-- 添加对websocket的支持 -->

  129. <dependency>

  130. <groupId>org.springframework.boot</groupId>

  131. <artifactId>spring-boot-starter-websocket</artifactId>

  132. </dependency>

  133.  
  134. <dependency>

  135. <groupId>org.springframework.boot</groupId>

  136. <artifactId>spring-boot-starter-test</artifactId>

  137. <scope>test</scope>

  138. </dependency>

  139.  
  140. <dependency>

  141. <groupId>javax.servlet</groupId>

  142. <artifactId>javax.servlet-api</artifactId>

  143. <version>3.1.0</version>

  144. <scope>provided</scope>

  145. </dependency>

  146.  
  147. <dependency>

  148. <groupId>org.springframework.boot</groupId>

  149. <artifactId>spring-boot-starter-tomcat</artifactId>

  150. <version>1.3.5.RELEASE</version>

  151. <scope>provided</scope>

  152. </dependency>

  153.  
  154. <dependency>

  155. <groupId>org.springframework.boot</groupId>

  156. <artifactId>spring-boot-devtools</artifactId>

  157. <optional>true</optional><!-- optional=true,依赖不会传递,该项目依赖devtools;之后依赖myboot项目的项目如果想要使用devtools,需要重新引入 -->

  158. </dependency>

  159.  
  160. <dependency>

  161. <groupId>com.xiaoleilu</groupId>

  162. <artifactId>hutool-all</artifactId>

  163. <version>3.0.9</version>

  164. </dependency>

  165.  
  166. <dependency>

  167. <groupId>io.springfox</groupId>

  168. <artifactId>springfox-swagger2</artifactId>

  169. <version>2.6.1</version>

  170. </dependency>

  171.  
  172. <dependency>

  173. <groupId>io.springfox</groupId>

  174. <artifactId>springfox-swagger-ui</artifactId>

  175. <version>2.6.1</version>

  176. </dependency>

  177. <dependency>

  178. <groupId>com.vaadin.external.google</groupId>

  179. <artifactId>android-json</artifactId>

  180. <version>0.0.20131108.vaadin1</version>

  181. </dependency>

  182.  
  183. </dependencies>

同时在我们的entity包底下新建我们刚刚的三个实体:

 

 

 
  1. /**

  2. *@author linzf

  3. **/

  4. public class User implements UserDetails {

  5.  
  6. public User(){

  7. super();

  8. }

  9.  
  10. public User(int id){

  11. this.id = id;

  12. }

  13.  
  14. private int id;

  15. private String login;

  16. private String password;

  17. private String userName;

  18. private String address;

  19. private String job;

  20. private long groupId;

  21. private Date birthDate;

  22. private String city;

  23. private String district;

  24. private String province;

  25. private String streetAddress;

  26. private String state;

  27. private String type;

  28. private Date lastLoginDate;

  29. // 用户角色信息

  30. private List<UserRole> roles;

  31. // 权限集合数据

  32. private String roleArray;

  33.  
  34. public String getRoleArray() {

  35. return roleArray;

  36. }

  37.  
  38. public void setRoleArray(String roleArray) {

  39. this.roleArray = roleArray;

  40. }

  41.  
  42. public int getId() {

  43. return id;

  44. }

  45.  
  46. public void setId(int id) {

  47. this.id = id;

  48. }

  49.  
  50. public String getLogin() {

  51. return login;

  52. }

  53.  
  54. public void setLogin(String login) {

  55. this.login = login;

  56. }

  57.  
  58. @Override

  59. public Collection<? extends GrantedAuthority> getAuthorities() {

  60. List<GrantedAuthority> auths = new ArrayList<GrantedAuthority>();

  61. if(this.getRoles()!=null){

  62. List<UserRole> roles=this.getRoles();

  63. for(UserRole role:roles){

  64. if(role.getName()!=null){

  65. auths.add(new SimpleGrantedAuthority(role.getName()));

  66. }

  67. }

  68. }

  69. return auths;

  70. }

  71.  
  72. public String getPassword() {

  73. return password;

  74. }

  75.  
  76. @Override

  77. public String getUsername() {

  78. return this.getUserName();

  79. }

  80.  
  81. @Override

  82. public boolean isAccountNonExpired() {

  83. return true;

  84. }

  85.  
  86. @Override

  87. public boolean isAccountNonLocked() {

  88. return true;

  89. }

  90.  
  91. @Override

  92. public boolean isCredentialsNonExpired() {

  93. return true;

  94. }

  95.  
  96. @Override

  97. public boolean isEnabled() {

  98. return true;

  99. }

  100.  
  101. public List<UserRole> getRoles() {

  102. return roles;

  103. }

  104.  
  105. public void setRoles(List<UserRole> roles) {

  106. this.roles = roles;

  107. }

  108.  
  109. public void setPassword(String password) {

  110. this.password = password;

  111. }

  112.  
  113. public String getUserName() {

  114. return userName;

  115. }

  116.  
  117. public void setUserName(String userName) {

  118. this.userName = userName;

  119. }

  120.  
  121. public String getAddress() {

  122. return address;

  123. }

  124.  
  125. public void setAddress(String address) {

  126. this.address = address;

  127. }

  128.  
  129. public String getJob() {

  130. return job;

  131. }

  132.  
  133. public void setJob(String job) {

  134. this.job = job;

  135. }

  136.  
  137. public long getGroupId() {

  138. return groupId;

  139. }

  140.  
  141. public void setGroupId(long groupId) {

  142. this.groupId = groupId;

  143. }

  144.  
  145. public Date getBirthDate() {

  146. return birthDate;

  147. }

  148.  
  149. public void setBirthDate(Date birthDate) {

  150. this.birthDate = birthDate;

  151. }

  152.  
  153. public String getCity() {

  154. return city;

  155. }

  156.  
  157. public void setCity(String city) {

  158. this.city = city;

  159. }

  160.  
  161. public String getDistrict() {

  162. return district;

  163. }

  164.  
  165. public void setDistrict(String district) {

  166. this.district = district;

  167. }

  168.  
  169. public String getProvince() {

  170. return province;

  171. }

  172.  
  173. public void setProvince(String province) {

  174. this.province = province;

  175. }

  176.  
  177. public String getStreetAddress() {

  178. return streetAddress;

  179. }

  180.  
  181. public void setStreetAddress(String streetAddress) {

  182. this.streetAddress = streetAddress;

  183. }

  184.  
  185. public String getState() {

  186. return state;

  187. }

  188.  
  189. public void setState(String state) {

  190. this.state = state;

  191. }

  192.  
  193. public String getType() {

  194. return type;

  195. }

  196.  
  197. public void setType(String type) {

  198. this.type = type;

  199. }

  200.  
  201. public Date getLastLoginDate() {

  202. return lastLoginDate;

  203. }

  204.  
  205. public void setLastLoginDate(Date lastLoginDate) {

  206. this.lastLoginDate = lastLoginDate;

  207. }

  208.  
  209. /**

  210. * 功能描述:组装角色数据集合

  211. * @param roleArray

  212. */

  213. public void packagingRoles(String roleArray){

  214. List<UserRole> roles = new ArrayList<UserRole>();

  215. if(roleArray!=null){

  216. UserRole userRole = null;

  217. for(String roleId:roleArray.split(",")){

  218. if(!roleId.isEmpty()){

  219. userRole = new UserRole();

  220. userRole.setId(Long.parseLong(roleId));

  221. roles.add(userRole);

  222. }

  223. }

  224. }

  225. this.setRoles(roles);

  226. }

  227.  
  228. }

 
  1. /**

  2. *@author linzf

  3. **/

  4. public class UserRole {

  5. private long id;

  6. private String name;

  7. private String roleName;

  8.  
  9. public long getId() {

  10. return id;

  11. }

  12.  
  13. public void setId(long id) {

  14. this.id = id;

  15. }

  16.  
  17. public String getName() {

  18. return name;

  19. }

  20.  
  21. public void setName(String name) {

  22. this.name = name;

  23. }

  24.  
  25. public String getRoleName() {

  26. return roleName;

  27. }

  28.  
  29. public void setRoleName(String roleName) {

  30. this.roleName = roleName;

  31. }

  32.  
  33.  
  34. }

 

 
  1. /**

  2. *@author linzf

  3. **/

  4. public class UserAssociateRole {

  5. private int userId;

  6. private long roleId;

  7.  
  8. public UserAssociateRole(){

  9. super();

  10. }

  11.  
  12. public UserAssociateRole(int userId,long roleId){

  13. this.userId = userId;

  14. this.roleId = roleId;

  15. }

  16.  
  17. public int getUserId() {

  18. return userId;

  19. }

  20.  
  21. public void setUserId(int userId) {

  22. this.userId = userId;

  23. }

  24.  
  25. public long getRoleId() {

  26. return roleId;

  27. }

  28.  
  29. public void setRoleId(long roleId) {

  30. this.roleId = roleId;

  31. }

  32.  
  33. }


接着我们在dao包里面创建以下的接口:

 

 

 
  1. /**

  2. *@author linzf

  3. **/

  4. public interface UserDao {

  5.  
  6. /**

  7. * 功能描述:根据账号来获取用户信息

  8. * @param login

  9. * @return

  10. */

  11. User findByLogin(String login);

  12.  
  13.  
  14. }


接着我们引入我们的mybatis配置以及我们的security和快速切换环境配置,首先在我们的application.properties底下增加以下配置:

 

 

 
  1. spring.profiles.active=dev

  2.  
  3. #配置放行的目录和方法

  4. security.ignored=/api/*,/css/*,/js/*,/images/*,/fonts/*,/font-awesome/*

  5. #表示对thymeleaf模板不再是用默认的HTML5标准来做严格限制

  6. spring.thymeleaf.mode = LEGACYHTML5

  7.  
  8. #配置mybatis的扫描的包的文件的入口

  9. mybatis.config-locations=classpath:mybatis/mybatis-config.xml

  10. mybatis.mapper-locations=classpath:mybatis/mapper/*.xml


同时在我们的resource目录底下创建一个目录mybatis并在该目录底下创建一个文件mybatis-config.xml和mapper目录如下所示:

 

 

mybatis-config.xml代码如下所示:

 

 
  1. <?xml version="1.0" encoding="UTF-8" ?>

  2. <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">

  3. <configuration>

  4. <typeAliases>

  5. <typeAlias alias="Integer" type="java.lang.Integer" />

  6. <typeAlias alias="Long" type="java.lang.Long" />

  7. <typeAlias alias="HashMap" type="java.util.HashMap" />

  8. <typeAlias alias="LinkedHashMap" type="java.util.LinkedHashMap" />

  9. <typeAlias alias="ArrayList" type="java.util.ArrayList" />

  10. <typeAlias alias="LinkedList" type="java.util.LinkedList" />

  11. </typeAliases>

  12. </configuration>


同时在我们的resource目录底下创建我们的application-dev.properties文件信息如下:

 

 

 
  1. server.port = 8080

  2. #数据库连接配置

  3. spring.datasource.driverClassName=com.mysql.jdbc.Driver

  4. spring.datasource.url=jdbc:mysql://10.6.71.236:3306/hyll_springboot?characterEncoding=utf-8

  5. spring.datasource.username=root

  6. spring.datasource.password=haoyunll123

接着我们在resource/mapper目录底下创建一个mybatis_user.xml内容如下:

 

 

 
  1. <?xml version="1.0" encoding="UTF-8"?>

  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

  3. <mapper namespace="com.csdn.demo.sys.dao.UserDao">

  4.  
  5. <!-- 包含角色信息的map -->

  6. <resultMap type="com.csdn.demo.sys.entity.User" id="UserLoginMap">

  7. <id property="id" column="id"/>

  8. <result property="login" column="login"/>

  9. <result property="password" column="password"/>

  10. <result property="userName" column="user_name"/>

  11. <result property="address" column="address"/>

  12. <result property="job" column="job"/>

  13. <result property="groupId" column="group_id"/>

  14. <result property="birthDate" column="birth_date"/>

  15. <result property="city" column="city"/>

  16. <result property="district" column="district"/>

  17. <result property="province" column="province"/>

  18. <result property="streetAddress" column="street_address"/>

  19. <result property="state" column="state"/>

  20. <result property="type" column="type"/>

  21. <result property="lastLoginDate" column="last_login_date"/>

  22. <collection property="roles" ofType="com.csdn.demo.sys.entity.UserRole" javaType="java.util.ArrayList">

  23. <result column="user_role_id" property="id" jdbcType="VARCHAR" />

  24. <result column="name" property="name" jdbcType="VARCHAR" />

  25. <result column="role_name" property="roleName" jdbcType="VARCHAR" />

  26. </collection>

  27. </resultMap>

  28.  
  29. <!-- 根据账号来获取用户信息 -->

  30. <select id="findByLogin" parameterType="java.lang.String" resultMap="UserLoginMap">

  31. select u.*,ur.id as user_role_id,ur.name,ur.role_name from user u inner join user_associate_role uar on u.id = uar.user_id inner join user_role ur on uar.role_id = ur.id where u.login = #{login}

  32. </select>

  33.  
  34. </mapper>


接着开始我们的springsecurity的配置,找到我们的config包在该包底下我们创建一个security和mybatis包如下所示:

 



接着在我们的security增加以下三个类分别是(CustomPasswordEncoder:密码加密类;CustomUserService:登陆逻辑重写类;WebSecurityConfig:security实现配置类):

 

 
  1. /**

  2. * spring-security登陆的密码进行MD5加密传到数据库

  3. */

  4. public class CustomPasswordEncoder implements PasswordEncoder {

  5. @Override

  6. public String encode(CharSequence rawPassword) {

  7. Md5PasswordEncoder encoder = new Md5PasswordEncoder();

  8. return encoder.encodePassword(rawPassword.toString(), "hyll");

  9. }

  10. @Override

  11. public boolean matches(CharSequence rawPassword, String encodedPassword) {

  12. Md5PasswordEncoder encoder = new Md5PasswordEncoder();

  13. return encoder.isPasswordValid(encodedPassword, rawPassword.toString(), "hyll");

  14. }

  15.  
  16. }

 

 
  1. /**

  2. * Created by Administrator on 2017/8/4 0004.

  3. */

  4. public class CustomUserService implements UserDetailsService {

  5.  
  6. @Inject

  7. private UserDao userDao;

  8.  
  9. @Override

  10. public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {

  11. User user = userDao.findByLogin(s);

  12. if(user == null){

  13. throw new UsernameNotFoundException("用户名不存在");

  14. }

  15. // 自定义错误的文章说明的地址:http://blog.csdn.net/z69183787/article/details/21190639?locationNum=1&fps=1

  16. if(user.getState().equalsIgnoreCase("0")){

  17. throw new LockedException("用户账号被冻结,无法登陆请联系管理员!");

  18. }

  19. return user;

  20. }

  21. }

 

 
  1. /**

  2. * 实现Security的配置

  3. */

  4. @Configuration

  5. @EnableGlobalMethodSecurity(prePostEnabled=true)

  6. public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

  7.  
  8. @Bean

  9. UserDetailsService customUserService(){

  10. return new CustomUserService();

  11. }

  12.  
  13. @Bean

  14. PasswordEncoder passwordEncoder(){

  15. return new CustomPasswordEncoder();

  16. }

  17.  
  18. @Override

  19. protected void configure(AuthenticationManagerBuilder auth) throws Exception {

  20. auth.userDetailsService(customUserService()).passwordEncoder(passwordEncoder());

  21.  
  22. }

  23.  
  24. @Override

  25. protected AuthenticationManager authenticationManager() throws Exception {

  26. return super.authenticationManager();

  27. }

  28.  
  29. /**

  30. * 描述:csrf().disable()为了关闭跨域访问的限制,若不关闭则websocket无法与后台进行连接

  31. * @param http

  32. * @throws Exception

  33. */

  34. @Override

  35. protected void configure(HttpSecurity http) throws Exception {

  36. http.headers().frameOptions().disable();

  37. http.csrf().disable().authorizeRequests()

  38. .anyRequest().authenticated()

  39. .and()

  40. .formLogin()

  41. .loginPage("/login")

  42. .defaultSuccessUrl("/main")

  43. .failureUrl("/login?error=true")

  44. .permitAll()

  45. .and()

  46. .logout()

  47. .logoutSuccessUrl("/login").

  48. permitAll();

  49. }

  50.  
  51. }


接着我们在mybatis包底下新增MyBatisConfig配置类如下所示【MapperScan扫描的是我们的dao接口的存放路径,因此此处大家一定要注意自己的dao包的路径是否正确,否则会导致调用dao方法出错】:

 

 

 
  1. @Configuration

  2. @MapperScan("com.csdn.demo.*.dao")

  3. public class MyBatisConfig {

  4.  
  5. }

接着在我们的config目录底下创建我们的WebMvcConfig配置文件如下所示:

 

 

 
  1. /**

  2. * 类描述:springMVC的配置

  3. */

  4. @Configuration

  5. public class WebMvcConfig extends WebMvcConfigurerAdapter {

  6.  
  7. /**

  8. * 重写方法描述:实现在url中输入相应的地址的时候直接跳转到某个地址

  9. * @param registry

  10. */

  11. @Override

  12. public void addViewControllers(ViewControllerRegistry registry) {

  13. registry.addViewController("/login").setViewName("login");

  14. registry.addViewController("/main").setViewName("main");

  15. registry.addViewController("/error").setViewName("error");

  16. }

  17.  
  18. }


  每次我们在maven重新import的时候我们需要重新将以下的一个配置重新设定下,否则我们的工程将无法运行起来如图所示【file->project Structure】:

 

 

   到此处我们的整个基础工程已经构建完成,我们可以直接将该工程运行起来,访问http://127.0.0.1:8080/login,由于还没有引入bootstrap因此整个页面显得不叫的丑,后续将bootstrap引入那么你们就会发现我们的页面越来越漂亮,运行效果如下图所示:

到此处我们的工程已经上次成功了,我会将本章的代码直接上传到github,大家可以直接下载下来并运行该代码,请大家在运行的时候先把整篇文章过一遍再运行,下一章将讲解如何整合swagger2以及druid这两个配置,本章代码的github地址是:https://github.com/185594-5-27/csdndemo/tree/base-demo,大家在导入项目的时候记得要将版本切换到base-demo版本这个版本才是本章的代码。

 

上一篇文章地址:基于springboot+bootstrap+mysql+redis搭建一套完整的权限架构【一】【构建工程】

 

下一篇文章地址:基于springboot+bootstrap+mysql+redis搭建一套完整的权限架构【三】【整合swagger2和druid】

 

QQ交流群:578746866

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值