- 博客(8)
- 收藏
- 关注
转载 Spring获取properties中的内容
我们都知道,Spring可以@Value的方式读取properties中的值,只需要在配置文件中配置org.springframework.beans.factory.config.PropertyPlaceholderConfigurer<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <propert
2020-10-19 19:59:31
372
转载 Java中都通用文件类型下载
//1.设置文件ContentType类型,这样设置,会自动判断下载文件类型response.setContentType("multipart/form-data"); //2.设置文件头:最后一个参数是设置下载文件名(假如我们叫a.pdf)response.setHeader("Content-Disposition", "attachment;fileName="+"a.pdf");...
2020-10-09 13:45:17
503
转载 spring-boot devtools热部署入门
pom文件增加依赖: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
2020-09-21 21:04:35
90
原创 mysql命令行笔记
mysql8+修改root密码ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';FLUSH PRIVILEGES;
2020-06-07 12:47:55
87
原创 oracle sql拆分合并字符串
SELECT REGEXP_SUBSTR( 'a,b', '[^,]+', 1, LEVEL ) COLS FROM DUAL CONNECT BY REGEXP_SUBSTR( 'a,b', '[^,]+', 1, LEVEL ) IS NOT NULL
2020-04-23 14:46:40
264
转载 Lambda表达式常用场景
Lambda 表达式是 Java 8 引入的新特性,结合 forEach 方法可以更方便地实现遍历。此外,它还可代替 Runnable 类,大大简化了代码的编写。下面介绍了一些常见的应用场景,在这些场景中适时地使用 Lambda 表达式要比通常的方式来得更加简洁和方便。列表迭代对一个列表的每一个元素进行操作,不使用 Lambda 表达式时如下:List<Integer> num...
2020-01-25 16:40:24
378
转载 maven添加镜像与常用配置
maven添加镜像与常用配置1.标签下标签取消注释<localRepository>D:\DevlopFiles\repository-3.5.4</localRepository>2.配置镜像<!-- 配置阿里云 --> <mirror> <id>nexus-aliyun</id> ...
2019-11-06 09:50:52
154
原创 Oracle常用命令行
Oracle常用命令行oracle导入dmp文件oracle登录oracle导入dmp文件imp 用户名/密码@127.0.0.1:1521/orcl file = E:\yxb\gx.dmp log = E:\yxb\gx.logfull=y ignore=yoracle登录sqlplus tiger/scott@localhost/orclsqlplus tiger/scott@...
2019-08-26 20:21:07
114
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人