
spring-boot
黑瞳丶
编程爱好者
展开
-
2、SpringBoot对静态资源的映射规则
2、SpringBoot对静态资源的映射规则;@ConfigurationProperties(prefix = "spring.resources", ignoreUnknownFields = false)public class ResourceProperties implements ResourceLoaderAware { //可以设置和静态资源有关的参数,缓存时间等 W...转载 2019-03-26 20:05:29 · 441 阅读 · 0 评论 -
3、模板引擎
3、模板引擎JSP、Velocity、Freemarker、ThymeleafSpringBoot推荐的Thymeleaf;语法更简单,功能更强大;1、引入thymeleaf; <dependency> <groupId>org.springframework.boot</groupId> <artifactId>sprin...转载 2019-03-26 20:14:06 · 170 阅读 · 0 评论 -
4、SpringMVC自动配置
4、SpringMVC自动配置https://docs.spring.io/spring-boot/docs/1.5.10.RELEASE/reference/htmlsingle/#boot-features-developing-web-applications1. Spring MVC auto-configurationSpring Boot 自动配置好了SpringMVC以下是S...原创 2019-03-26 21:20:16 · 691 阅读 · 0 评论 -
【Spring boot学习之路】-idea的补丁破解
首先 直接去官网下载idea当然博主我直接给你们更快的那就是百度云链接链接:https://pan.baidu.com/s/1TWDOpnN7wGx1LBedujLvew提取码:dqgw复制这段内容后打开百度网盘手机App,操作更方便哦大概这三样东西 里面的那个txt文件请直接忽略!问我为什么?当然是过期了!!所以直接跳过用注册码的方式注册直接使用破解补丁就行了首先找到你...原创 2019-07-13 12:38:01 · 384 阅读 · 0 评论 -
【Spring boot学习之路】-day01
ctrl + p 快捷键提示代码将spring 项目推送到 github上 使用的http 而不是sshctrl + shift + n 快速打开某个文件第一步git init 初始化第二步git status第三步git add . 添加第四步git commit -m “init repo” 提交第五步git remote add origin ...原创 2019-07-15 07:09:04 · 199 阅读 · 0 评论 -
【Spring boot学习之路】-day02
okhhtp介绍:一种http框架,java里面也有自带的httpclient这个类,不过写起来比较复杂作用:通过调用github的accessToken接口并携带code拿到accessToken 在调用user接口返回user信息详情可以看这篇博客https://blog.youkuaiyun.com/u013651026/article/details/79738059选中代码 alt +...原创 2019-07-20 21:08:50 · 286 阅读 · 0 评论