- 博客(11)
- 问答 (1)
- 收藏
- 关注
原创 将本地项目复制一份上传到远程git地址
4.将本地项目的所有文件复制到该目录中。7.将本地仓库与远程仓库关联起来。添加所有文件到Git仓库中。8.将本地代码推送到远程仓库。初始化该目录为Git仓库。
2023-07-05 09:54:37
175
原创 springboot+mybatisplus如何分页
1.在service去继承mybatis的基础service2.mapper继承继承的basemapper 3.最后在controlller层就可以直接使用分页了4.重要的一点!!!! 因为我踩了坑得加入这个分页配置分页才能生效
2022-06-08 15:10:46
2962
原创 java调用dll文件多个依赖的时候调用失败的问题
1.将引用的文件定义加载dll库文件接口,继承自Librarypublic interface ClibraryEc extends Library { ClibraryEc INSTANCEEc = (ClibraryEc) Native.loadLibrary("\\dllRe\\ylz-certificate.dll", ClibraryEc.class);}2.调用主函数之前 先调用引用的dll文件进行加载ClibraryEc ec= ClibraryEc.INSTANCEEc
2022-04-25 11:17:17
397
原创 记jsonstr转bean问题
1.springboot中 使用hutool的 JSONUtil.toBean(resultStr,YBResponse.class);时当str中有内嵌对象有空值时会有转换问题出现jsonnull报错解决方式 使用alibaba 的JSONObject.parseObject(resultStr,MedicalResponse.class);2.空值null如果想变成""输出到前端可以直接使用以下方式package com.newland.util;import com.faster
2022-04-11 15:11:14
1243
原创 参数校验与springboot全局异常处理
最近在做公司的项目 想要做统一的校验和异常处理1.添加校验引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency>然后再各层增加校验参数@Va.
2022-03-11 14:10:18
651
原创 swagger引入问题报错‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerException
为了给spring boot项目引入swagger 出现了各种错误刚开始还以为是版本的问题 一直在降低版本 后来才发现是这个问题因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。解决办法,修改application.yamlspring: mvc: pathmatch: matching-strategy: ant_path_matcher...
2022-03-09 18:18:41
490
原创 helloworld
编写代码public class HelloWorld { public static void main(String []args) { System.out.println("Hello World"); }} 编写 HelloWorld.java 文件 调用cmd javac 编译文件 java HelloWorld 运行文件 注意,在运行HelloWorld.class文件时不能给出“.class”,切记!...
2021-12-22 10:37:05
105
原创 markdown学习
markdown学习标题三级标题字体helloworld! 粗体**helloworld! 斜体 *helloworld! 粗斜体***helloworld! 删除~~引用引用直接> 就行分割线***和---加空格 是分割线图片超链接百度列表 -加空格就是无序列表 1.加空格就是有序列表 C A 表.
2021-12-21 15:23:38
193
空空如也
小程序推送消息链接跳转问题
2021-12-22
TA创建的收藏夹 TA关注的收藏夹
TA关注的人