• 2024-08-02SpringCloud使用Sentinel,Sentinel持久化,Sentinel使用nacos持久化
    Sentinel官方文档:https://sentinelguard.io/zh-cn/docs/introduction.html下载Sentinel:https://github.com/alibaba/Sentinel/releasessentinel控制台文档:https://sentinelguard.io/zh-cn/docs/dashboard.html参考:https://www.cnblogs.com/ralgo/p/14152390.html启动Sentinel命令:j
  • 2023-07-15java的cmd命令行和jsch执行压测
    前言项目中用到了cmd命令去执行,但是发现一个问题就是,当需要切换用户和执行命令的时候特别的麻烦,所以后面又该用了jsch的连接方式,测试一下性能理想不理想,看看有劣势。相关配置ssh的连接数#cat/etc/ssh/sshd_config|grepMaxSessions#MaxSessions1000测试代码@GetMapping("/cmd"
  • 2023-02-08Springboot整合AOP和注解,实现丰富的切面功能
    简介我们在文章《SpringAOP与AspectJ的对比及应用》介绍了AOP的使用,这篇文章讲解一下AOP与注解的整合,通过注解来使用AOP,会非常方便。为了简便,我们还是来实现一个计时的功
  • 2023-02-07Spring AOP与AspectJ的对比及应用
    1简介AOP,即面向切面编程是很常用的技术,特别是在JavaWeb开发中。而最流行的AOP框架分别是SpringAOP和AspectJ。2SpringAOPvsAspectJSpringAOP是基于SpringIoC实
  • 2023-02-06iphone View之间跳转
    新建TestController界面,然后在别的界面中添加下面代码,跳转到TestController界面,代码如下://打开新窗口,关闭当前窗口TestController*testContro
  • 2022-11-20SpringMVC - 获取请求参数,作用域
    一、获取请求参数1.原生serveltAPI@ControllerpublicclassTestController{@RequestMapping("/test01")publicStringtest01(HttpServletRequestrequest){