随笔分类 -  SpringBoot

摘要:1. 在resources目录下新建lib目录,将jar放入 2. 在pom文件中添加依赖 <dependency> <groupId>com.fanruan</groupId> <artifactId>fine-accumulator</artifactId> <version>11.0</ver 阅读全文
posted @ 2023-11-18 16:55 xl4ng 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-11-05 21:11 xl4ng 阅读(170) 评论(0) 推荐(0) 编辑
摘要:package com.example.demo.controller; import com.example.demo.model.User; import org.springframework.web.bind.annotation.*; import org.springframework. 阅读全文
posted @ 2022-10-04 09:48 xl4ng 阅读(42) 评论(0) 推荐(0) 编辑
摘要:package com.example.springboot.entity; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import 阅读全文
posted @ 2022-04-27 20:50 xl4ng 阅读(116) 评论(0) 推荐(0) 编辑
摘要:@GetMapping("/car/{id}/owner/{username}") public Map<String, Object> getCar( //路径变量 @PathVariable("id") Integer id, @PathVariable("username") String u 阅读全文
posted @ 2021-10-07 17:42 xl4ng 阅读(426) 评论(0) 推荐(0) 编辑
摘要:1、新建类 @Data @Component @ConfigurationProperties(prefix = "person") public class Person { private String userName; private Boolean boss; private Date b 阅读全文
posted @ 2021-10-07 11:22 xl4ng 阅读(106) 评论(0) 推荐(0) 编辑
摘要:import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.C 阅读全文
posted @ 2021-07-25 16:58 xl4ng 阅读(51) 评论(0) 推荐(0) 编辑
摘要:引入依赖 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <logback.version>1.1.7</logback.version> <slf4j.version>1.7.21</s 阅读全文
posted @ 2020-11-13 14:33 xl4ng 阅读(109) 评论(0) 推荐(0) 编辑
摘要:<!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 阅读全文
posted @ 2020-07-25 10:24 xl4ng 阅读(2082) 评论(0) 推荐(0) 编辑
摘要:<!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 阅读全文
posted @ 2020-07-25 10:15 xl4ng 阅读(429) 评论(0) 推荐(0) 编辑
摘要:<!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 阅读全文
posted @ 2020-07-25 10:08 xl4ng 阅读(362) 评论(0) 推荐(0) 编辑
摘要:<!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 阅读全文
posted @ 2020-07-25 09:47 xl4ng 阅读(273) 评论(0) 推荐(0) 编辑
摘要:package com.ruoyi.project.tool.thymeleaf; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; imp 阅读全文
posted @ 2020-07-25 09:42 xl4ng 阅读(596) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2020-06-06 09:25 xl4ng 阅读(4155) 评论(0) 推荐(0) 编辑
摘要:1.引入依赖 2.编辑配置类 3.如何动态配置当项目处于test、dev环境时显示swagger,处于prod时不显示? 4.分组 阅读全文
posted @ 2020-05-22 22:50 xl4ng 阅读(113) 评论(0) 推荐(0) 编辑
摘要:``` 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 阅读全文
posted @ 2020-05-20 22:32 xl4ng 阅读(145) 评论(0) 推荐(0) 编辑
摘要:``` package com.example.scheduldemo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annot 阅读全文
posted @ 2020-05-20 21:53 xl4ng 阅读(835) 评论(0) 推荐(0) 编辑
摘要:``` package com.example.scheduldemo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annot 阅读全文
posted @ 2020-05-20 21:38 xl4ng 阅读(248) 评论(0) 推荐(0) 编辑
摘要:1.导入依赖 2.创建UserRealm 3.创建ShiroConfig 4.创建HomeController 阅读全文
posted @ 2020-05-06 21:03 xl4ng 阅读(155) 评论(0) 推荐(0) 编辑
摘要:1.导入mybatis spring boot starter依赖 2.创建实体类User 3.创建dao层UserMapper 4.创建UserMapper.xml 5.编辑配置文件 6.创建控制器 阅读全文
posted @ 2020-05-05 10:19 xl4ng 阅读(184) 评论(0) 推荐(0) 编辑