mybatisplus springboot图标banner
SpringBoot项目,Mybatis查数据有些字段值为null,有些又有值??
问题:SpringBoot项目,Mybatis查数据有些字段值为null,有些又有值?? 上网查看了许多博客,发现大多说的都是实体对象的名称和数据库字段的名称不一样,但是我检查了发现是一样的。我以为id数据库是int,而实体对象是Integer的原因,我想着java不是可以自动拆装箱吗,改来改去发现 ......
9-springboot统一异常处理
500错误页面之前可以xml中配置errorpage的配置,或者tomcat的web.xml中处理,现在可以进行统一处理。 新建处理类统一处理 @ControllerAdvicepublic class ExceptionHandler { @org.springframework.web.bind ......
8-springboot使用拦截器
参考文章: https://blog.csdn.net/leeta521/article/details/119532691 SpringBoot通过实现HandlerInterceptor接口实现拦截器,通过实现WebMvcConfigurer接口实现一个配置类,在配置类中注入拦截器,最后再通过@ ......
6-springboot配置多数据源
1.application.properties中配置多数据源 #refund数据源#此种标黄的没办法自己进行解析,代码读取spring.datasource.refunddb.url=jdbc:mysql://refund地址spring.datasource.refunddb.username= ......
7-springboot-多数据源事务管理-jta+atomikos的分布式事务
jta+atomikos的分布式事务 <!--jta+atomikos分布式事务--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jta-atomikos</arti ......
刷新桌面缓存图标
在桌面随便创建一个txt. 复制以下代码进去 @echo off taskkill /f /im explorer.exe CD /d %userprofile%\AppData\Local DEL IconCache.db /a start explorer.exe echo 3. 改为.bat后 ......
vue+element-ui+springboot实现修改当前登录用户的信息
正文:话不多说,直接上代码 springboot代码 /** * 根据id修改当前登录用户的信息 * * @param username * @return */ @GetMapping("/username/{username}") public Result findOne(@PathVaria ......
SpringBoot测试类运行后无反应问题排查
SpringBoot测试类运行后无反应问题排查 1.情景复现 import com.beilehu.management.Application; import org.junit.Test; import org.junit.runner.RunWith; import org.springfra ......
springboot配置双数据源
日常开发中,遇到需要从不同数据库中访问数据时,这时需要我们在项目中配置双数据源以满足开发需求。 配置结构如下: 1.yml 配置文件中配置双数据源链接地址 datasource: database1: driver-class-name: com.mysql.cj.jdbc.Driver jdbc- ......
一统天下 flutter - widget 媒体类: Icon - 图标
一统天下 flutter https://github.com/webabcd/flutter_demo 作者 webabcd 一统天下 flutter - widget 媒体类: Icon - 图标 示例如下: lib\widget\media\icon.dart /* * Icon - 图标 * ......
一统天下 flutter - widget 按钮类: IconButton - 图标按钮
一统天下 flutter https://github.com/webabcd/flutter_demo 作者 webabcd 一统天下 flutter - widget 按钮类: IconButton - 图标按钮 示例如下: lib\widget\button\icon_button.dart ......
一统天下 flutter - UI: 闪屏页,程序名称,程序图标
一统天下 flutter https://github.com/webabcd/flutter_demo 作者 webabcd 一统天下 flutter - UI: 闪屏页,程序名称,程序图标 示例如下: lib\ui\splash_screen.dart /* * 闪屏页,程序名称,程序图标 * ......
使用springboot搭建swing桌面程序(一)转
https://blog.csdn.net/weixin_39169535/article/details/125844737 ......
前端切图之svg图标的复用基于defs和use 亲测有用
切图网长期致力于web前端开发外包服务,而我们也关注到现在图标很多时候采用svg更多一点,然后图标字体文件已经提供了很多种类的图标,不过采用svg图标可以自行选择更符合、更好看的图标,相比于字体图标更加多样性,而且svg图标加载更快,而当svg的图标被多次使用的时候,我们需要一种类似于变量的定义,然 ......
springboot上传文件到指定位置
这是我现在的pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in ......
SpringBoot学习笔记
SpringBoot 快速入门 打包boot程序并给其他人运行 通过这个插件可以将maven项目打成jar包(普通maven项目也可以打成jar包,但是设置这个插件以后这个jar包就变成了可以运行的jar包,并且在打包的时候会吧直接和间接的依赖都包含进去,以便可以直接运行) 配置文件 三种设置端口的 ......
MybatisPlus学习笔记
MybatisPlus 初始化 创建boot项目的时候导入mysql的依赖,创建好以后在里边导入MybatisPlus的坐标(这个坐标包含和mybatis的相关坐标和spring整合mybatis的相关坐标,所以自己不需要再导入这些坐标了) CRUD操作 使用lombok简化实体类的书写 <depe ......
基于springboot+mybatis+mysql仿百度网盘系统
@(基于springboot+mybatis+mysql仿百度网盘系统) 一、系统介绍 系统主要功能: 普通用户:用户登陆、主页、全部文件、上传文件、文件分类、文件分部 管理员用户:用户登陆、主页、全部文件、上传文件、文件分类、文件分部、用户管理 项目运行 环境配置: Jdk1.8 + Tomcat ......
SpringBoot 第二部分知识点
SpringBoot - 第⼆天 1.学习目标 2 Mybatis 整合 数据访问 使用 SpringBoot 开发企业项目时,持久层数据访问是前端页面数据展示的基础,SpringBoot 支持市面 上常见的关系库产品 (Oracle、Mysql、SqlServer、DB2等) 对应的相关持久层框架 ......
SpringBoot 第一部分知识点
SpringBoot - 第⼀天 1.学习目标 2.Spring框架发展史 2.1. Spring1.x 时代 在 Spring1.x 时代,都是通过 xml 文件配置 bean,随着项目的不断扩大,需要将 xml 配置分放到不同 的配置文件中,需要频繁的在 java 类和 xml 配置文件中切换。 ......
4-springboot多数据源配置报错Cause: java.lang.IllegalArgumentException: jdbcUrl is required with driverClassName
springboot2.0版本以上的多数据源配置改成: spring.datasource.refunddb.url=jdbc:mysql://refund地址spring.datasource.refunddb.username=uatspring.datasource.refunddb.pass ......
3-springboot编译报错Relying upon circular references is discouraged and they are prohibited by default
如果是.properties文件,在文件中添加 spring.main.allow-circular-references=true 如果是.yml文件,则在文件中添加 spring: main: allow-circular-references:true文章参考:https://blog.csd ......
第六天(springBoot基础第三篇)
一、 Thymeleaf模板 1. 介绍 Thymeleaf是用来开发Web和独立环境项目的现代服务器端Java模板引擎。 Thymeleaf的主要目标是为您的开发工作流程带来优雅的自然模板 - HTML。可以在直接浏览器中正确显示, 并且可以作为静态原型,从而在开发团队中实现更强大的协作。 借助S ......
SpringBoot2动态设置日志级别
SpringBoot使用Logback作为日志框架,项目中一般在application.properties中指定日志级别,比如以下设置分别指定了不同的包使用不同的日志级别: logging.level.org.springframework=WARN logging.level.com.compa ......
MyBatisPlus
一、MyBatisPlus入门 在创建SpringBoot项目时勾选需要的技术集 导入相应坐标 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <versi ......
4-springboot集成mybatis
1.pom.xml中添加mybatis依赖 2.application.properties中添加数据源配置 3.反向生成dao的代码 1. <!-- mybatis-spring-boot-starter --><dependency> <groupId>org.mybatis.spring.bo ......
5-springboot集成热部署的方式
热部署是指当我们修改代码后,服务能自动重启加载新修改的内容,这样大大提高了我们开发的效率; Spring boot热部署通过添加一个插件实现; 插件为:spring-boot-devtools,在Maven中配置如下: <!-- springboot 开发自动热部署 --> <dependency> ......
springboot开发中常用注解总结
目录 springboot开发中常用注解总结 前言 1 springboot启动 1.1 @SpringBootApplication 2 springBean相关 2.1 @Autowired 2.2 @Qualifier 2.3 @Resource 2.4 @Component(通用)、@Ser ......
idea工具栏没了设置建包建类图标
https://blog.csdn.net/qq_37919082/article/details/123981137 https://blog.csdn.net/jiayou516/article/details/117745967 ......
【SpringBoot】自定义注解+拦截
创建一个注解,用来校验身份 @Target({ElementType.TYPE,ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface AuthUser { // int user(); // 管理员 // ......