•  2022-08-20  60  0
    现在swagger用的人比较多了, 当项目中的接口比较多的时候,项目启动的时候,swagger扫描会占用很长的时间,比如10秒以上,  这样就可以思考一下,很自然的想到bean加载异步处理的话题, 那
  •  2022-04-19  176  0
    go spring走起 搭建GO开发环境 安装go 解压缩安装go 在windows下采用压缩包安装 配置环境变量 接下来,配置环境变量PATH, GOPATH 开启gomodule模式 GO111M
  •  2022-03-20  35  0
    swagger2 在springboot项目中使用, 项目启动的时候, 会扫描指定包下的接口, 当接口比较多的时候, 扫描接口会耗费比较多的时间, 比如:10秒以上, 能不能让swagger2的扫描异
  •  2019-08-11  252  0
    springboot打成可执行的FAT Jar, 执行的流程如下代码示例所示 按照springboot的源代码调用流程,使用了springboot的一套java类,完整展示 springboot的ja
  •  2019-01-20  506  0
    源代码地址 https://github.com/oldnoop/cos 单独使用spring 引入依赖 编写资源配置文件 coskey.properties 参考cos-spring的jar包中的/
  •  2018-04-24  272  0
    引入依赖 编写配置类 下图中的地方就是设置请求头参数token的代码 控制器类添加swagger注解 访问swagger界面  
  •  2018-04-10  475  0
    配置停止服务的监听端口 在application.properties配置 shutdown.port=28082 启动类引入ApplicationContext private static App
  •  2018-03-28  305  0
    引入依赖 springboot2.0以上(含2.0)可以引入起步依赖 springboot2.0以下(不含2.0)单独引入quartz的依赖,如有需要,还可以引入quartz-job 编写具体任务类
  •  2018-03-28  161  0
    定时器 在指定的时间,执行指定的任务 可能只执行1次,可能重复执行 异步执行,延时执行,用在实时性要求不高的场景 cron表达式 定时器一般多用到cron表达式 字段                 
  •  2018-03-28  381  0
    引入依赖 spring-boot-starter-mail 配置mail 修改application.properties spring.mail.host=smtp.tom.com spring.m

Copyright © 2018 oldnoop.tech. All Rights Reserved

鄂ICP备2023022735号-1