Stella981 Stella981
3年前
Spring Boot(六)集成 MyBatis 操作 MySQL 8
一、简介1.1MyBatis介绍MyBatis是一款优秀的持久层框架,它支持定制化SQL、存储过程以及高级映射。MyBatis避免了几乎所有的JDBC代码和手动设置参数以及获取结果集。1.2MyBatis发展史MyBatis原本是apache的一个开源项目iBatis,2010年这个项目由apache
Stella981 Stella981
3年前
Spring Boot使用Netty SocketIO实现WebIM功能
NettySocketIO是一个Java语言版本的Socket.IO(http://www.oschina.net/p/socketio)服务器的实现,基于Netty(https://www.oschina.net/p/netty)框架开发,使用简单,功能强大。在SpringBoot中包含了对NettySocketIO的支持,
Stella981 Stella981
3年前
Spring Boot学习(四)Controller接收请求参数
SpringBoot学习(四)Controller接收请求参数一、通过实体Bean接收请求参数通过实体Bean来接收请求参数,适用于get和post方式,Bean的属性名称必须与请求参数名称相同。项目结构如下:!(https://static.oschina.net/uploads/space/2018/0601/174959_FvRV
Wesley13 Wesley13
3年前
Java spring boot根据html模板导出PDF
maven依赖<dependency<groupIdcom.itextpdf</groupId<artifactIditextpdf</artifactId<version5.5.13</version</dependency<dependency<groupIdcom.itextpdf</groupI
Stella981 Stella981
3年前
Spring Boot配置文件放在jar外部
SpringBoot配置文件放在jar外部(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fxiaoqi%2Fp%2F6955288.html)
Stella981 Stella981
3年前
Spring Boot中Spring data注解的使用
SpringBoot中Springdata注解的使用SringdataJPA为我们提供了很多有用的注解,方便我们来实现各种复杂的功能。本文我们将会从SpringDataAnnotations和SpringDataJPAAnnotations两部分来讲解。SpringDataAnnotations
Stella981 Stella981
3年前
Spring Boot(十五):启动类原理解析
一、启动类简介@SpringBootApplicationpublicclassApplication{publicstaticvoidmain(Stringargs){SpringApplication.run(Application.class,args);
Stella981 Stella981
3年前
Spring boot高频面试题及答案
!(https://oscimg.oschina.net/oscnet/58bb1d49ec3719e636a53464ea2d828715a.png)概述什么是SpringBoot?SpringBoot是Spring开源组织下的子项目,是Spring组件一站式解决方案,主要是简化了使用Spring
Stella981 Stella981
3年前
Spring Boot @ControllerAdvice+@ExceptionHandler处理controller异常
需求:  1.springboot 项目restful 风格统一放回json  2.不在controller写trycatch代码块简洁controller层  3.对异常做统一处理,同时处理@Validated校验器注解的异常方法:  @ControllerAdvice注解定义全局异常处理类@ControllerAdvice
Stella981 Stella981
3年前
Spring Boot系列实战文章合集(附源码)
!Profile(https://uploadimages.jianshu.io/upload_images/98242478af9580c72d64ee3.jpg?imageMogr2/autoorient/strip%7CimageView2/2/w/1240)概述文章开始之前先感叹一番吧。个人从之前的C语言项