spring-boot-demo
spring-boot-demo copied to clipboard
🚀一个用来深入学习并实战 Spring Boot 的项目。
### 描述问题 在日志打印 SQL 参数时,基本数据类型使用 JSONUtil.toJsonStr() 无法 JSON 序列化,导致日志打印内容为空 - deleteById() ```bash c.x.orm.jdbctemplate.dao.base.BaseDao : 【执行SQL】SQL:DELETE FROM `orm_user` where id = ? c.x.orm.jdbctemplate.dao.base.BaseDao : 【执行SQL】参数:{} ``` - 以及 findOneById() ```bash c.x.orm.jdbctemplate.dao.base.BaseDao...
Bumps [elasticsearch](https://github.com/elastic/elasticsearch) from 7.3.0 to 7.14.0. Release notes Sourced from elasticsearch's releases. Elasticsearch 7.14.0 Downloads: https://elastic.co/downloads/elasticsearch Release notes: https://www.elastic.co/guide/en/elasticsearch/reference/7.14/release-notes-7.14.0.html Elasticsearch 7.13.4 Downloads: https://elastic.co/downloads/elasticsearch Release notes: https://www.elastic.co/guide/en/elasticsearch/reference/7.13/release-notes-7.13.4.html Elasticsearch 7.13.3 Downloads: https://elastic.co/downloads/elasticsearch...
**请先看[《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md?utm_source=hacpai.com)**,并尝试到 **[issue 列表](https://github.com/xkcoding/spring-boot-demo/issues)** 搜寻是否已经有人遇到过同样的问题。 ---- ### 描述问题 [DatasourceHolder.java](https://github.com/xkcoding/spring-boot-demo/blob/master/demo-dynamic-datasource/src/main/java/com/xkcoding/dynamic/datasource/datasource/DatasourceHolder.java) 中的方法,都是**synchronize**的,但是`DATASOURCE_CACHE`初始化为`ConcurrentHashMap`,是否可替换为`HashMap` ```bash 日志内容 ``` ### 期待的结果 `DATASOURCE_CACHE`初始化为`HashMap` ### 截屏或录像  ### 其他信息 请提供其他附加信息帮助我们诊断问题。
Closes https://github.com/xkcoding/spring-boot-demo/issues/237 Closes https://github.com/xkcoding/spring-boot-demo/issues/239 (cherry picked from commit 7c980c593d020afe2c79e555982d1e8458e5b9b1) * PR 修复缺陷请先开 `issue` **[报告缺陷](https://github.com/xkcoding/spring-boot-demo/issues/new?template=bug_report.md)** * PR 提交新特性请先开 `issue` **[报告新特性](https://github.com/xkcoding/spring-boot-demo/issues/new?template=feature_request.md)** * PR 请提交到 `dev` 开发分支上 * 我们对编码风格有着较为严格的要求,请在阅读代码后模仿类似风格提交 * 欢迎通过 PR 给我们补充案例
**请先看[《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md?utm_source=hacpai.com)**,并尝试到 **[issue 列表](https://github.com/xkcoding/spring-boot-demo/issues)** 搜寻是否已经有人遇到过同样的问题。 ---- ### 描述问题 demo-template-beetl模块中page下的页面文件后缀应为.btl,README中写成了html ### 期待的结果 将index.html,login.html修正为index.btl,login.btl ### 截屏或录像 
**请先看[《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md?utm_source=hacpai.com)**,并尝试到 **[issue 列表](https://github.com/xkcoding/spring-boot-demo/issues)** 搜寻是否已经有人遇到过同样的问题。 ---- ### 描述问题 BaseDao.getField()方法未正确过滤主键 ```java public static void main(String[] args) { BaseDao userDao = new UserDao(null); List field = userDao.getField(new User(), false); System.out.println(field); } ``` 返回结果中包含了被注解@Pk标为主键的id。原因如下:...
修复 ehcache模块的错别字😂
### What happened? There are 1 security vulnerabilities found in cn.hutool:hutool-all 5.4.5 - [CVE-2023-24162](https://www.oscs1024.com/hd/CVE-2023-24162) ### What did I do? Upgrade cn.hutool:hutool-all from 5.4.5 to for vulnerability fix ### What did...
1. 包括graphql常见的场景,query, mutation, subscrition, pagination等 2. 基于graphql场景下的RBAC控制
### 描述问题 websocket的DEMO中:sys.setOsArch(props.getProperty("os.arch")); 默认获取的是jdk的arch ### 期待的结果 期待获取实际本机的系统参数 ### 解决办法 ```bash String archRaw = systemInfo.getHardware().getProcessor().getIdentifier(); sys.setOsArch(archRaw.substring(0,archRaw.indexOf(' '))); ```