![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot
文章平均质量分 52
Springboot
Write less Do more
程序员小白,刚学java,希望结交一些喜欢Java的朋友,一起学习,一起进步!
展开
-
Redis与Memorycache的区别
1.Redis与Memorycache的区别? 1.1memcache和redis管理session机制 memcache与tomcat整合,全局session管理机制:即整个服务器中所有应用全部基于memcache管理 reids 与应用进行整合,基于应用的session管理:即一个应用会话全部交给redis管理 1.2 session同步的问题: 当session同步的对象较大的时候,会出现服务器瓶颈的问题。 1.3使用memcache解决session同步 原理:当前登录请求通过负载均衡到达t原创 2021-02-02 18:24:33 · 5212 阅读 · 0 评论 -
08-Springboot_security
Springboot_security 1、配置 #关闭模板引擎,方便调试,不然每次都要重启 spring.thymeleaf.cache=false 2、依赖 <!--thymeleaf--> <dependency> <groupId>org.thymeleaf.extras</groupId> <artifactId&g...原创 2020-04-02 20:32:34 · 116 阅读 · 0 评论 -
07-pringboot整合Mybatis
Springboot整合Mybatis 1、导包 jdbc sql jdbc drvier <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </de...原创 2020-04-02 20:31:26 · 106 阅读 · 0 评论 -
06-Springboot_jdbc
一、版本问题 jdbc <!--jdbc:2.2.1--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency&g...原创 2020-04-02 20:28:19 · 86 阅读 · 0 评论 -
05-springboot_web01
文件目录: 一、静态资源 1、加载图标 <link rel="icon" th:href="@{/img/xd.ico}" type="image/x-icon"/> 2、index.html <!-- 1、命名空间 --> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <!-- 2、引入静...原创 2020-04-02 20:27:33 · 205 阅读 · 0 评论 -
03-SpringBoot_thymeleaf简单用法
一、导入静态资源 1.1 静态资源优先级 可以直接访问:localhost:8080/1.js 二、首页 方式一: 直接在static目录中添加index.html即可 方式二:需要先学下一个模板引擎 templates中的html页面,但是只能通过Controller访问 图标管理: 1、springboot:2.1.7 2、application.properties # 关闭...原创 2020-04-02 20:16:51 · 176 阅读 · 0 评论 -
02-Springboot-yml配置解读
SpringBoot-config 1、yaml的写法 # k=v 属性后面一定要跟空格(对空格的要求高) # 普通的key=value name: xd #对象 student: name: xd age: 18 #行内写法 student: { name: xd,age: 18 } #数组 pets: - cat - dog - pig pets: [cat,dog,p...原创 2020-04-02 18:30:16 · 125 阅读 · 0 评论 -
01-Springboot源码简单归纳
Springboot配置文件 1、spring.factories存放了所有的配置 2、规律: 能配置的东西都有一个规律:xxxAutoConfiguration:默认值、 xxxProperties 和 配置文件绑定。我们就可以使用自定义配置了。 SpringBoot启动会加载大量的自动配置类。 我们看我们需要的功能有没有在Springboot默认写好的自动配置类当中 我们再来看这个...原创 2020-04-02 18:27:05 · 96 阅读 · 0 评论 -
01-git第一次提交
这个时候第一次push需要网址: $ git add --all $ git commit -m “提交信息” $ git remote add origin ‘远程仓库url’ $ git push -u origin 对应远程分支名 然后下一次就不用那么麻烦了,直接: $ git add --allg $ git commit -m “信息” $ git push ...原创 2020-03-20 23:36:20 · 104 阅读 · 0 评论