![](https://img-blog.csdnimg.cn/20190927151053287.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
springboot
文章平均质量分 55
Springboot学习笔记和开发笔记
Steady Ben
沉淀自我,做行动之巨人,为鸿鹄之志也!
展开
-
SpringBoot 项目集成多种数据源
SpringBoot 项目集成多种数据库源原创 2022-11-25 09:36:27 · 475 阅读 · 0 评论 -
SpringBoot项目加密配置文件关键信息
SpringBoot项目加密配置文件关键信息原创 2022-11-03 18:48:24 · 143 阅读 · 0 评论 -
项目实战 | Excel导出(三)——Excel导出样式
Excel导出(三)——Excel导出样式原创 2022-08-12 11:49:32 · 1593 阅读 · 0 评论 -
项目实战 | Excel导出(二)——返回内容优化
优化导出返回内容原创 2022-08-12 11:03:59 · 764 阅读 · 0 评论 -
项目实战 | Excel导出(一)——导出方式
Excel导出功能:动态生成多sheet模板填充导出、根据对象写Excel导出原创 2022-07-03 20:54:59 · 1378 阅读 · 0 评论 -
K8S部署SpringBoot项目
K8S部署SpringBoot项目原创 2022-06-13 21:03:11 · 435 阅读 · 0 评论 -
问题:OfficeException: failed to start and connect(三)
问题:OfficeException: failed to start and connect(三)原创 2022-06-13 19:35:13 · 610 阅读 · 0 评论 -
问题:OfficeException: failed to start and connect(二)
问题:OfficeException: failed to start and connect(二)原创 2022-06-13 19:32:01 · 1374 阅读 · 0 评论 -
问题解决:OfficeException: failed to start and connect(一)
问题解决:OfficeException: failed to start and connect原创 2022-06-09 21:15:10 · 3256 阅读 · 0 评论 -
SpringBoot集成knife4j
SpringBoot集成knife4j1、添加依赖:<dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> <version>2.0.7</version></dependency>2、添加配置SwaggerConfig@Configurati原创 2022-05-16 19:47:51 · 525 阅读 · 0 评论 -
Tomcat部署SpringBoot项目
Tomcat部署SpringBoot项目1、配置pom.xml文件 <!-- 需要排除内嵌的tomcat,才能让其用tomcat部署 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</sc原创 2022-05-11 20:31:53 · 3323 阅读 · 2 评论 -
SpringBoot集成knife4j遇到的问题
SpringBoot集成knife4j1、出现org.springframework.plugin.core.PluginRegistry.getPluginFor报错原因是:org.springframework.plugin.core的版本还过低,与knife4j要求不符导致报错解决方式有两种:1、直接提升springboot启动包的版本到2.3.5.RELEASE <parent> <groupId>org.springframework.boot</gr原创 2022-05-08 17:13:36 · 1528 阅读 · 0 评论 -
springboot的WEB开发笔记(dubbo与zookeeper)
分布式将服务放于多台电脑,每台电脑之间都有联系,互相协作完成任务,形成分布式服务RPC远程过程调用,一台电脑调用另外一台电脑的服务或方法RPC两个核心模块:通讯、序列化apache-zookeeper-3.6.1-bin需要包名有bin的要不然在cmd运行zkServer.cmd会报错dubbo-admin下载https://github.com/apache/dubbo-admin/tree/master打包成jar包有两种方法①下载后可用cmd在dubbo-admin-master目录原创 2020-08-14 20:31:31 · 138 阅读 · 0 评论 -
springboot的WEB开发笔记(静态资源,Thymeleaf,扩展自动配置类,Format)
springboot的WEB开发(一)1、静态资源2、访问首页3、图标注意:4、Themeleaf5、扩展自动配置类6、Format1、静态资源//第一种方法: if (!registry.hasMappingForPattern("/webjars/**")) { this.customizeResourceHandlerRegistration(registry.addResourceHandler(new String[]{"/webjars/**"}).a原创 2020-08-04 20:51:58 · 155 阅读 · 0 评论 -
springboot的WEB开发笔记(Shiro)
springboot的WEB开发(五)Shiroini文件插件的使用:quickstart项目的使用springboot整合1、导入整合依赖2、编写核心配置3、编写Controller4、整合数据库5、整合thymeleaf和shiroShiroshiro官方网址:http://shiro.apache.org/shiro的quickstart项目:https://github.com/apache/shiro/tree/master/samples/quickstartquickstart项目可以原创 2020-08-10 20:43:45 · 142 阅读 · 0 评论 -
springboot的WEB开发笔记(swagger)
springboot的WEB开发(swagger)swaggerSpringboot集成Swagger2Springboot集成Swagger3配置swagger页面的基本信息Swagger配置文档分组Swagger配置实体类扫描注释Swagger配置控制类注释swagger官网:https://swagger.io/Springboot集成Swagger2Swagger2①导入依赖<dependency> <groupId>io.springfox</gr原创 2020-08-11 14:17:39 · 189 阅读 · 0 评论 -
springboot的WEB开发笔记(Lombok,国际化,拦截器,Thymeleaf组件化,报错页面,注销页面)
springboot的WEB开发(二)Lombok的使用国际化配置拦截器Themeleaf组件化WEB开发过程中的注意事项:Lombok的使用<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId></dependency>有可能会出现Lombok导包后仍失效的问题:IDEA的的解决办法:打开setin原创 2020-08-05 22:50:30 · 321 阅读 · 0 评论 -
springboot的WEB开发笔记(整合Redis)
整合Redis1、导入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency>2、解析源码@Bean@ConditionalOnMissingBean( name = {"redisTemplate"}原创 2020-08-11 17:58:20 · 139 阅读 · 0 评论 -
springboot的WEB开发笔记(整合数据库)
springboot的WEB开发(三)整合数据库整合JDBC整合Druid配置一下属性利用@Bean注册druid的web.xml内容过滤器的配置整合mybatispom.xmlyaml配置Mapper接口有两种扫描方法整合数据库整合JDBC如果时区报错,则添加serverTimezone=UTCurl: jdbc:mysql://localhost:3306/jdbc?useUnicode=true&characterEncoding=utf-8springboot 会已经帮我们封装好原创 2020-08-08 15:19:38 · 142 阅读 · 0 评论 -
springboot学习笔记(springboot原理初探)
springboot原理初探springboot自动配置SpringApplication.run分析springboot自动配置pom.xmlspring-boot-dependencies:核心依赖在父工程中!我们在写或者引入一些Springboot依赖时,不需要指定版本,就是因为有这些版本仓库启动器<dependency> <groupId>org.springframework.boot</groupId> <artifa原创 2020-08-03 10:30:24 · 207 阅读 · 0 评论 -
springboot的WEB开发笔记(SpringSecurity)
springboot的WEB开发(四)SpringSecurity依赖添加页面授权授权的登陆页面为自定页面的操作有两种授权的自定义rememberMe权限认证SpringSecuritySpringSecurity官方使用文档:https://docs.spring.io/spring-security/site/docs/5.2.6.RELEASE/reference/htmlsingle/#jc依赖添加SpringSecurity配置的版本会受springboot的版本影响thymeleaf-原创 2020-08-10 20:10:56 · 99 阅读 · 0 评论 -
springboot学习笔记(Yaml配置注入)
Yaml配置注入Yaml与properties的对比yaml的运用yaml的高级用法松散绑定JSR303使用yaml配置读取的优先级yaml配置多个环境配置Yaml与properties的对比①properties 只能保存键值对!②yaml可以存储,它对空格的要求十分高!#普通的键值对name: xiaoming#对象student: name: xiaoming age: 10#行内写法student: {name: xiaozhang,age: 5}#数组pet:原创 2020-08-03 16:12:05 · 205 阅读 · 0 评论 -
springboot的WEB开发笔记(异步,邮箱,定时任务)
springboot的WEB开发(异步,邮箱,定时任务)任务异步任务邮箱任务定时任务任务异步任务应用类添加@EnableAsync开启异步注解功能@EnableAsync//开启异步注解功能@SpringBootApplicationpublic class AsynchronousApplication { public static void main(String[] args) { SpringApplication.run(AsynchronousApplic原创 2020-08-11 17:56:09 · 125 阅读 · 0 评论