文章浏览阅读5.5k次,点赞4次,收藏34次。关于本项目的技术选型, 我们将会从 用户层、网关层、应用层、数据层 这几个方面进行介绍,而对于我们服务端开发工程师来说,在项目开发过程中,我们主要关注应用层及数据层技术......
admin 2024-01-31
文章浏览阅读293次。文章目录1. mybatis+generator逆向工程生成代码1. pom文件2. 在resources下新建generator文件夹,在generator下新建generatorConfig.xml最近自己写了一个SpringBoot+Mybatis(generator)+druid的demo这是我的demo模板的地址1. mybatis+generato......
admin 2024-01-25
文章浏览阅读1.4k次。1 简介 其实SpringBoot的东西用起来非常简单,因为SpringBoot最大的特点就是自动装配。使用SpringBoot的步骤:1、创建一个SpringBoot应用,选择我们需要的模块,SpringBoot就会默认将我们的需要的模块自动配置好......
admin 2023-11-13
文章浏览阅读5.1k次,点赞12次,收藏57次。前端设计使用ElementUI进行编写,后端使用springboot微服务架构,简单实现一个基于vue+springboot的增删改查案例_springboot elementui...
admin 2024-01-23
文章浏览阅读8.6k次。创建一个新项目(Create New Project)选择 Spring Initializr。然而我发现我的IDEA上面没有Spring Initializr这个选项。解决办法如下:在settings -> Plugins 里面搜索spring boot,勾选上,然后再重启下idea,就可以了。如果Plug......
admin 2024-01-24
文章浏览阅读1.1k次。开发完成后,生产就绪需要做哪些工作呢?我认为,以下三方面的工作最重要。提供健康检测接口。传统采用 ping 的方式对应用进行探活检测并不准确。有的时候,应用的关键内部或外部依赖已经离线,导......
admin 2023-11-11
文章浏览阅读9.5w次,点赞34次,收藏227次。之前的项目中,用到过redis,主要是使用redis做缓存,redis在web开发中使用的场景很多,其中缓存是其中一个很重要的使用场景,之所以用作缓存,得益于redis的读写数据,尤其是在读取......
admin 2024-01-21
在启动项注解中增加即可: org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class@EnableApolloConfig@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, org.springframewo._springboot去掉鉴......
admin 2023-10-12
文章浏览阅读7.1k次,点赞19次,收藏51次。前言使用过springboot的同学应该已经知道,springboot通过默认配置了很多框架的使用方式帮我们大大简化了项目初始搭建以及开发过程。本文的目的就是一步步分析springboot的启动过程,分......
admin 2024-03-25
文章浏览阅读79次。springboot中集成SwaggerSwagger的使用一.springboot中使用Swagger1.去maven的官网上上找swagger的依赖2.编写你的Swagger配置文件类3.启动项目,访问swagger-ui.html4.实体类上的注释5.contrller上的注释Swagger的使用一.springboot中使......
admin 2024-01-23
文章浏览阅读743次。Mybatis结合springboot进行编码设置1.两种方式业务背景:数据库表结构导出,页面进行动态数据源提供,然后也提供编码,防止中文乱码1)Filter doFilter()时候对response进行统一设置编码但是因为我这个是动......
admin 2024-01-24
文章浏览阅读236次。springboot进行项目发布控制层接口层服务层application.yml将项目打包生成jar文件,编写Docker文件FROM java:8MAINTAINER lc <741283731@qq.com> VOLUME /tmp ADD myspt-0.0.1-SNAPSHOT.jar app.jar RUN bash -c 'touch /app.jar'ENTRYPOINT ["java&qu......
admin 2024-01-24
文章浏览阅读1.2w次,点赞5次,收藏17次。可以说近几年Spark的流行带动了Scala的发展,它集成了面向对象编程和函数式编程的各种特性,Scala具有更纯Lambda表粹的函数式业务逻辑解决方案,其语法比Java8后Lambda更加简洁方便,Spring......
admin 2024-01-23
文章浏览阅读77次。目录1.使用场景2. 实现1.创建拦截器2.把拦截器加入配置中3.测试1.使用场景登录验证,判断用户是否登录 权限验证,判断用户是否有权限访问资源,如校验token 日志记录,记录请求操作日志(用户ip,访问时间......
admin 2024-01-24
文章浏览阅读6.5k次,点赞4次,收藏6次。环境信息:IntelliJ IDEA 2019.3 (Ultimate Edition)macOS 10.15.4GC: ParNew, ConcurrentMarkSweepMemory: 1981MCores: 8问题描述:在idea中启动本地的springboot项目测试时,启动缓慢,会在前两行日志到启动图那卡好......
admin 2024-01-31
文章浏览阅读6.5k次,点赞4次,收藏6次。环境信息:IntelliJ IDEA 2019.3 (Ultimate Edition)macOS 10.15.4GC: ParNew, ConcurrentMarkSweepMemory: 1981MCores: 8问题描述:在idea中启动本地的springboot项目测试时,启动缓慢,会在前两行日志到启动图那卡好......
admin 2024-01-31
文章浏览阅读6.5k次,点赞4次,收藏6次。环境信息:IntelliJ IDEA 2019.3 (Ultimate Edition)macOS 10.15.4GC: ParNew, ConcurrentMarkSweepMemory: 1981MCores: 8问题描述:在idea中启动本地的springboot项目测试时,启动缓慢,会在前两行日志到启动图那卡好......
admin 2024-01-31
友情链接申请要求: 不违法不降权 权重相当 请联系QQ:737597453