public function getPrivilegeList($moduleType){ $authRuleModel = M('auth_rule'); $data = $authRuleModel->where(['module_type' => $moduleType])->select( ...
分类:
其他好文 时间:
2020-09-24 21:36:51
阅读次数:
44
思路 发送邮件一般得有一个发送的账户信息,我理解的就是个载体。其次发送内容,最后目标人群。 1.邮箱配置SMTP 登录邮箱 设置 账户设置 开启SMTP服务(记住授权码) 至于更详细的教程百度搜索 2.下面是发送的方法,这几个参数啥意思 /// <summary> /// 同步发送邮件 /// </ ...
Nginx用户认证配置用户认证:以bbs.jinkai.cc.conf为例vim/etc/nginx/conf.d/bbs.jinkai.cc.conf添加location~admin.php{auth_basic"Auth";auth_basic_user_file/etc/nginx/user_passwd;fastcgi_pass127.0.0.1:9000;fastcg
分类:
其他好文 时间:
2020-09-23 23:12:54
阅读次数:
38
package com.xmdishi.fmp.utils; import net.sf.json.util.JSONUtils; import org.apache.commons.lang3.StringUtils; import java.util.*; /** * json 与 bean的转 ...
分类:
Web程序 时间:
2020-09-18 01:16:35
阅读次数:
43
1.微信小程序长按图片保存图片,在开发的时候使用微信的模拟器测试和手机的真机测试都是可以的,但是,上传代码使用体验版之后就是失效了 原因:保存的图片不能是http开头的 解决办法:将图片保存在项目中使用本地的图片,或者使用网络的图片,但是必须是https开头的 这是html代码: <image sr ...
分类:
其他好文 时间:
2020-09-17 22:50:23
阅读次数:
32
h5:<!doctypehtml><htmllang="en"><head><metacharset="UTF-8"><metaname="Generator"content="EditPlus?"><metaname="Author"content=""><metaname="Keywords"content=""&g
分类:
移动开发 时间:
2020-09-17 22:16:19
阅读次数:
39
@FeignClient("user-service") public interface UserFeignClient { @GetMapping(value="/user/{id}",headers={"Authorization=qwer"}) User queryUserById(@Pat ...
分类:
Web程序 时间:
2020-09-17 12:57:19
阅读次数:
78
1.前言最近实在比较忙,很难抽出时间来继续更SpringSecurity实战干货系列。今天正好项目中SpringSecurity需要对认证授权异常的处理,就分享出来吧。2.SpringSecurity中的异常SpringSecurity中的异常主要分为两大类:一类是认证异常,另一类是授权相关的异常。2.1AuthenticationExceptionAuthenticationException是
分类:
编程语言 时间:
2020-09-16 12:39:51
阅读次数:
46
一、pre-installerldap1.1、实验环境系统:CentOS7Openldap:2.4.44Freeradius:3.0.13Ldapadmin:1.8.3(win64)Phpldapadmin:1.2.31.2、系统优化关闭防火墙:systemctlstopfirewalld.service&&systemctldisablefirewalld.service关闭Ne
分类:
其他好文 时间:
2020-09-14 19:12:56
阅读次数:
58