![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
no_Talents
算法好难- -
展开
-
SpringBoot2.x|创建Spring Boot项目
官网:https://spring.io/projects/spring-boot 创建Spring Boot项目:https://start.spring.ioSpringBoot为我们提供了一个创建项目的网站,我们通过它来创建项目,并且通过IDEA来编写代码。 我们通过Maven来进行项目的管理。在Maven中,Group是包的名称,Artifact则是项目的名称。最重...原创 2018-09-05 00:03:56 · 479 阅读 · 0 评论 -
SpringBoot2.x|Thymeleaf页面不能正常载入css、js文件
Html css及js文件引入采用绝对路径。<!-- reset, layui and login --><link rel="stylesheet" th:href="@{~/static/css/reset.css}&原创 2018-09-02 18:01:32 · 8694 阅读 · 0 评论 -
SpringBoot2.x|Shiro
Shiro Shiro专注于易用性,可以进行安全,稳定的身份验证,授权,加密和会话管理。配置个人采用的springboot版本是springboot 2.0.4pom.xml<!-- 版本配置 --><properties> <shiro.version>1.3.2&am原创 2018-09-03 00:40:19 · 724 阅读 · 0 评论 -
SpringBoot2.x|从零开始搭建个人博客(一)
创建项目:https://start.spring.io/ layui:https://www.layui.com/项目Init通过IDEA打开项目后,创建出以下的文件结构。|- - blogs        |- - src   &原创 2018-09-06 00:57:25 · 1205 阅读 · 0 评论 -
SpringBoot2.x | Json及时间戳处理
pom.xml<!-- Json解析 --><dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.51</version</dependency原创 2018-10-28 13:28:20 · 2607 阅读 · 0 评论 -
SpringBoot2.x | 分页插件PageHelper
pom.xml&amp;lt;!-- 分页插件 --&amp;gt;&amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;com.github.pagehelper&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;pagehelper-s原创 2018-10-26 02:00:33 · 2586 阅读 · 0 评论 -
SpringBoot2.x | 请求参数POJO传递
前端发起请求,将表单Post到后台,表单对应的参数名应该为和后台的POJO属性名一致。会员entity类package com.bookstore.entity;import com.fasterxml.jackson.annotation.JsonFormat;import java.util.Date;public class Vip { private Integ...原创 2018-11-17 20:26:25 · 1145 阅读 · 0 评论 -
SpringBoot2.x | 时区设置
在插入数据库以及从数据库查询出的时间数据发现比当前时间少了8个小时,需要增加一些配置来解决这个问题。application.properties# 数据库配置spring.datasource.url=jdbc:mysql://localhost:3306/bookstore?useSSL=false&useUnicode=true&characterEncoding=u...原创 2018-11-18 11:53:19 · 3568 阅读 · 0 评论 -
SpringBoot2.x | 控制层路径映射
在Controller层中可以通过以下方式对同一文件夹下的多个html映射。import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.PathVariable;import org.springframework.web.bind.annotation.R...原创 2018-12-04 23:16:14 · 810 阅读 · 0 评论