随笔分类 - SpringBoot
摘要:1. 在resources目录下新建lib目录,将jar放入 2. 在pom文件中添加依赖 <dependency> <groupId>com.fanruan</groupId> <artifactId>fine-accumulator</artifactId> <version>11.0</ver
阅读全文
摘要:1、前端代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div id="msg_from_server"></div> <div id="ss
阅读全文
摘要:package com.example.demo.controller; import com.example.demo.model.User; import org.springframework.web.bind.annotation.*; import org.springframework.
阅读全文
摘要:package com.example.springboot.entity; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import
阅读全文
摘要:@GetMapping("/car/{id}/owner/{username}") public Map<String, Object> getCar( //路径变量 @PathVariable("id") Integer id, @PathVariable("username") String u
阅读全文
摘要:1、新建类 @Data @Component @ConfigurationProperties(prefix = "person") public class Person { private String userName; private Boolean boss; private Date b
阅读全文
摘要:import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.C
阅读全文
摘要:引入依赖 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <logback.version>1.1.7</logback.version> <slf4j.version>1.7.21</s
阅读全文
摘要:<!DOCTYPE html> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <head> <th:block th:include="i
阅读全文
摘要:<!DOCTYPE html> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <head> <th:block th:include="i
阅读全文
摘要:<!DOCTYPE html> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <head> <th:block th:include="i
阅读全文
摘要:<!DOCTYPE html> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <head> <th:block th:include="i
阅读全文
摘要:package com.ruoyi.project.tool.thymeleaf; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; imp
阅读全文
摘要:OpenOffice安装略 1.引入依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSc
阅读全文
摘要:1.引入依赖 2.编辑配置类 3.如何动态配置当项目处于test、dev环境时显示swagger,处于prod时不显示? 4.分组
阅读全文
摘要:``` org.springframework.boot spring-boot-starter-mail ``` ``` spring.mail.username=XX@qq.com spring.mail.password=XXX spring.mail.host=smtp.qq.com #qq需要开启ssl spring.mail.properties.mail.smtp.ssl.enabl
阅读全文
摘要:``` package com.example.scheduldemo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annot
阅读全文
摘要:``` package com.example.scheduldemo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annot
阅读全文
摘要:1.导入依赖 2.创建UserRealm 3.创建ShiroConfig 4.创建HomeController
阅读全文
摘要:1.导入mybatis spring boot starter依赖 2.创建实体类User 3.创建dao层UserMapper 4.创建UserMapper.xml 5.编辑配置文件 6.创建控制器
阅读全文