jpa用原生SQL查询数据库
一、提前准备有2张表student,和teacher表 对应要联合查询的DTO实例,创建表SQL在上个博客页面里有, 数据内容如下: 学生表student 老师表teacher 这里使用的SQL语句是: select a.id as id,...
一、提前准备有2张表student,和teacher表 对应要联合查询的DTO实例,创建表SQL在上个博客页面里有, 数据内容如下: 学生表student 老师表teacher 这里使用的SQL语句是: select a.id as id,...
一、先来个application.properties文件 spring.profiles.active=@package.environment@ spring.mvc.favicon.enable=false #thymelea模板配置...
获取 IDEA 激活码、PyCharm 激活码、WebStorm 激活码和 DataGrip 激活码,提供详细破解教程与永久激活方法。支持 IDEA 永久激活与破解,免费获取注册码与激活码,解决 2024/2025 版本激活问题,轻松实现所有 JetBrains 工具的激活。
一、Springboot-webapp的配置 taskweb–pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www...
抄别人的。 工具类 import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.LocalDateTime; import jav...
依赖相关 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-te...
下面跟着我一起花三分钟搭建一个超实用的文件服务器 – MinIO 一、下载安装 中文官网地址: https://docs.min.io/cn/ 下载地址: GNU/Linux https://dl.min.io/server/minio/r...
1spring工具类HtmlUtils HtmlUtils.htmlEscape(specialStr); HtmlUtils.htmlUnescape(str1) ; 2jsoup来处理也可以 String content = "待处理富...
springcloud与springboot的版本对应关系请参考https://start.spring.io/actuator/info。 文章永久链接:https://tech.souyunku.com/24763
在项目中我们遇到404找不到的错误、或者500服务器错误都需要配置相应的页面给用户一个友好的提示,而在Spring Boot中我们需要如何设置。 我们需要实现ErrorController接口,重写handleError方法。 import...
很多时候日期格式输出是这样的 2018-10-09T17:39:07.097 中间有个T,尴尬,是的我们需要去掉这个T 这方法是springboot封装好了的,我们直接使用即可,普通的配置我就不贴了 教程 一、全局配置模式 创建日期conf...