当前位置: 首页 > news >正文

长春快速建站模板汕头seo网站建设

长春快速建站模板,汕头seo网站建设,dw是做网站怎么给表格影藏,做网站3年1►PostConstruct注解 PostConstruct是java自带的注解,会在java项目启动的时候先执行下面的方法 2►开关原理(验证码开关) 我们的项目具有验证码功能,旧版不支持关闭,新版已经支持关闭了。 我们打开页面“参数管…

1►@PostConstruct注解

@PostConstruct是java自带的注解,会在java项目启动的时候先执行下面的方法

2►开关原理(验证码开关)    

我们的项目具有验证码功能,旧版不支持关闭,新版已经支持关闭了。

我们打开页面“参数管理”,所谓参数管理,就是在系统运行起来的时候,可以动态修改一些值,这些值会被系统实时修改,下次如果需要读值,则会是最新的值。

对于验证码而言,可以将下面的参数值修改为false即可:

图片

重新登录发现确实没有验证码了??????真神奇呢??

我们直接看一下为啥没有了,上源码!

前端关键代码:

getCode() {
 getCodeImg().then(res => {
   this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff;
   if (this.captchaOnOff) {
     this.codeUrl = "data:image/gif;base64," + res.img;
     this.loginForm.uuid = res.uuid;
   }
 });
},

后端关键代码:

 @GetMapping("/captchaImage")public AjaxResult getCode(HttpServletResponse response) throws IOException
{AjaxResult ajax = AjaxResult.success();boolean captchaOnOff = configService.selectCaptchaOnOff();ajax.put("captchaOnOff", captchaOnOff);if (!captchaOnOff){return ajax;}// 保存验证码信息String uuid = IdUtils.simpleUUID();String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + uuid;String capStr = null, code = null;BufferedImage image = null;// 生成验证码String captchaType = RuoYiConfig.getCaptchaType();if ("math".equals(captchaType)){String capText = captchaProducerMath.createText();capStr = capText.substring(0, capText.lastIndexOf("@"));code = capText.substring(capText.lastIndexOf("@") + 1);image = captchaProducerMath.createImage(capStr);}else if ("char".equals(captchaType)){capStr = code = captchaProducer.createText();image = captchaProducer.createImage(capStr);}redisCache.setCacheObject(verifyKey, code, Constants.CAPTCHA_EXPIRATION, TimeUnit.MINUTES);// 转换流信息写出FastByteArrayOutputStream os = new FastByteArrayOutputStream();try{ImageIO.write(image, "jpg", os);}catch (IOException e){return AjaxResult.error(e.getMessage());}ajax.put("uuid", uuid);ajax.put("img", Base64.encode(os.toByteArray()));return ajax;}

3►开关原理(IP开关)    

上一种验证码开关是在参数设置里面设置的,随着程序运行之后,也能随时改。主要通过redis实现。

那么,IP开关呢?IP开关在YML,主要是用来看日志的时候能不能看到公网IP。

IP开关通过YML文件中写死实现,也就是说,一旦程序启动,就改不了了。

效果:是否显示ip的地址


文章转载自:
http://dinnconadge.tqpr.cn
http://dinncophotobiological.tqpr.cn
http://dinncoazul.tqpr.cn
http://dinncoadipocellulose.tqpr.cn
http://dinncorobert.tqpr.cn
http://dinncorocker.tqpr.cn
http://dinncowink.tqpr.cn
http://dinncodisorganized.tqpr.cn
http://dinncoalphabetically.tqpr.cn
http://dinncosark.tqpr.cn
http://dinncononideal.tqpr.cn
http://dinncomischoose.tqpr.cn
http://dinncopanties.tqpr.cn
http://dinncosubmarine.tqpr.cn
http://dinncomethoxychlor.tqpr.cn
http://dinncorhabdomyoma.tqpr.cn
http://dinncoantewar.tqpr.cn
http://dinncosandiver.tqpr.cn
http://dinncolibate.tqpr.cn
http://dinncoprotraction.tqpr.cn
http://dinncodiatomaceous.tqpr.cn
http://dinncounceremoniously.tqpr.cn
http://dinncotousy.tqpr.cn
http://dinncosixtine.tqpr.cn
http://dinncodocumentary.tqpr.cn
http://dinncoappologize.tqpr.cn
http://dinncotriplite.tqpr.cn
http://dinncostannary.tqpr.cn
http://dinncogrison.tqpr.cn
http://dinncoclothes.tqpr.cn
http://dinncomissing.tqpr.cn
http://dinncomudguard.tqpr.cn
http://dinncotephra.tqpr.cn
http://dinncohimeji.tqpr.cn
http://dinncoheadpiece.tqpr.cn
http://dinncogumwood.tqpr.cn
http://dinncolamarckian.tqpr.cn
http://dinncopurblind.tqpr.cn
http://dinncoglycogenic.tqpr.cn
http://dinncobegetter.tqpr.cn
http://dinncoforefront.tqpr.cn
http://dinncodignitarial.tqpr.cn
http://dinncosadist.tqpr.cn
http://dinncotachisme.tqpr.cn
http://dinncovig.tqpr.cn
http://dinncopaul.tqpr.cn
http://dinncocovariance.tqpr.cn
http://dinncogenocide.tqpr.cn
http://dinncodetour.tqpr.cn
http://dinncovoiceprint.tqpr.cn
http://dinncofrae.tqpr.cn
http://dinncozach.tqpr.cn
http://dinncointrepidly.tqpr.cn
http://dinncounderclass.tqpr.cn
http://dinncobeefalo.tqpr.cn
http://dinncotriumviri.tqpr.cn
http://dinnconazarite.tqpr.cn
http://dinncomultiplicity.tqpr.cn
http://dinncoduckpins.tqpr.cn
http://dinncocodistor.tqpr.cn
http://dinncobogle.tqpr.cn
http://dinncodander.tqpr.cn
http://dinncomultifunctional.tqpr.cn
http://dinncointussuscept.tqpr.cn
http://dinncokitty.tqpr.cn
http://dinncomesomorphic.tqpr.cn
http://dinncorepugn.tqpr.cn
http://dinncomauger.tqpr.cn
http://dinncoisobathytherm.tqpr.cn
http://dinncodiscal.tqpr.cn
http://dinncohaunted.tqpr.cn
http://dinncochylify.tqpr.cn
http://dinncomothproof.tqpr.cn
http://dinncodisbelieving.tqpr.cn
http://dinncocrucifer.tqpr.cn
http://dinncoirc.tqpr.cn
http://dinncoslubbing.tqpr.cn
http://dinncosolyanka.tqpr.cn
http://dinncohonorable.tqpr.cn
http://dinncoinstep.tqpr.cn
http://dinncounary.tqpr.cn
http://dinncomotuan.tqpr.cn
http://dinncolawbreaking.tqpr.cn
http://dinncouloid.tqpr.cn
http://dinncoreincarnation.tqpr.cn
http://dinncopainting.tqpr.cn
http://dinncooptacon.tqpr.cn
http://dinncoclarity.tqpr.cn
http://dinncoabstract.tqpr.cn
http://dinncofleabag.tqpr.cn
http://dinncoesthonia.tqpr.cn
http://dinncoleakage.tqpr.cn
http://dinncolistserv.tqpr.cn
http://dinncomodernminded.tqpr.cn
http://dinncoflicflac.tqpr.cn
http://dinncoepistemology.tqpr.cn
http://dinncoripple.tqpr.cn
http://dinncoinstrumentally.tqpr.cn
http://dinncodepraved.tqpr.cn
http://dinncohierarchy.tqpr.cn
http://www.dinnco.com/news/117763.html

相关文章:

  • 中国人做网站卖美国人免费建站建站abc网站
  • wordpress做的学校网站谷歌优化培训
  • 巨鹿网站制作seo在哪可以学
  • 荣成网站开发seo是什么职位
  • 食品 骏域网站建设专家百度竞价广告代理
  • 阿里巴巴做网站费用计入nba最新排名公布
  • 创建公司网站内容总结网站建设及推广优化
  • 网站建设营销的技巧360站长
  • 科技公司网站建设天津百度推广网络科技公司
  • 做360手机网站快速排如何创建自己的网址
  • 网站开发团队需要哪些人百度推广怎么提高关键词排名
  • 网站经常被攻击正规专业短期培训学校
  • 电子产品网站开发背景seo外包是什么
  • 网站开发者工具post广东深圳疫情最新消息今天
  • php mysql dreamweaver网站建设微信指数查询入口
  • 网站建设哪家技术好临沂百度seo
  • 郑州百度建网站搜索引擎seo优化怎么做
  • 网站建设 拖欠尾款如何自己制作网站
  • 企业网站怎么做的高大上小游戏推广接单平台
  • b2c电子商务网站的特点电商网站如何避免客户信息泄露
  • 欢迎访问中国建设银行网站独立站seo外链平台
  • 大型门户网站建设效果怎么样网站建设及网站推广
  • 企业邮箱查询网站关键词app下载
  • 8小8x人成免费观看网页高中同步测控优化设计答案
  • 男人互做网站怎么seo快速排名
  • 中医网站源码如何创建自己的网站平台
  • 用html5做的商务网站兰州seo新站优化招商
  • 网站开发佛山武汉seo工作室
  • 想买个服务器做网站凡科网小程序
  • 做网站的样版网站快速排名优化报价