![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
java相关
宋song一
这个作者很懒,什么都没留下…
展开
-
SpringBoot配置
【代码】SpringBoot配置。原创 2023-05-02 15:18:34 · 44 阅读 · 0 评论 -
Spring依赖注入
Spring DI原创 2023-02-11 09:27:54 · 73 阅读 · 0 评论 -
JVM调优
jvm原创 2022-12-05 00:41:33 · 89 阅读 · 0 评论 -
hutool
hutool原创 2022-10-18 21:07:48 · 133 阅读 · 0 评论 -
gradle + idea项目控制台中文乱码
原文链接:https://blog.csdn.net/Bruce_Zhang0828/article/details/107865534刚开始是启动程序直接报错:需要在gradle的配置文件中添加tasks.withType(JavaCompile) { options.encoding = 'UTF-8'}可以正常启动,但是控制台还是存在中文乱码的问题需要修改idea配置 打开HELP下边的edit custom vm options -Dfile.encoding=UTF-8原创 2022-02-09 20:42:41 · 715 阅读 · 0 评论 -
java定时任务
quartz原创 2021-03-21 00:11:10 · 84 阅读 · 0 评论 -
并发量
原创 2020-11-21 16:33:54 · 186 阅读 · 0 评论 -
SpringDataJpa
1.配置文件spring.datasource.url=jdbc:mysql://localhost:3306/day11aspring.datasource.username=rootspring.datasource.password=123456spring.datasource.driver-class-name=com.mysql.jdbc.Driver# 自动建表 update:表示有表则直接使用,无表就新建spring.jpa.hibernate.ddl-auto=update原创 2020-11-12 16:56:13 · 158 阅读 · 0 评论 -
Hibernate JPA
一.JPA1.添加依赖//hibernate实体管理者,对接JPA规范的管理员 这是hibernate为了迎合JPA的规范做出来的。compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '4.3.9.Final'2.定义实体类3.定义配置文件必须要说明一点,配置文件的名字需要固定,必须叫:persistence.xml , 而且也必须放在 META-INF下面,不能直接放在resource下面。需原创 2020-11-12 16:08:52 · 235 阅读 · 0 评论 -
springboot图片上传与浏览器展示
package com.demo.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.core.io.Resource;import org.springframework.core.io.ResourceLoader;import org.springframework.http.MediaType;import org.springframewo原创 2020-11-11 19:04:44 · 1049 阅读 · 1 评论 -
java:基础,JDBC,AOP
1. java Date中方法toLocaleString过时的替代方案2.JDBC3.aop原创 2020-10-28 23:45:53 · 308 阅读 · 0 评论 -
SpringBoot
Tomcat的bin文件夹startup.bat启动需要设置JAVA_HOME环境变量1、gradle添加依赖compile group: ‘org.springframework.boot’, name: ‘spring-boot-starter-web’, version: ‘2.3.4.RELEASE’或 compile(‘org.springframework.boot: spring-boot-starter-web: 2.3.4.RELEASE’)thymeleaf在springboot原创 2020-10-22 13:30:10 · 104 阅读 · 0 评论