- 博客(15)
- 资源 (1)
- 收藏
- 关注

原创 linux 安装 mongoDB 服务后台运行 带用户名密码
第一步下载(来自菜鸟教程)MongoDB 提供了 linux 各发行版本 64 位的安装包,你可以在官网下载安装包。下载地址:https://www.mongodb.com/download-center#community下载完安装包,并解压tgz(以下演示的是 64 位 Linux上的安装) 。curl -O https://fastdl.mongodb.org/linux/mongodb-...
2018-06-14 10:55:30
2596
原创 下载文件弹出保存文件位置的对话框
HttpServletResponse responseString filename=“”;response.setHeader("Content-Disposition", "attachment;fileName=" + new String(filename.getBytes(), "iso-8859-1"));这句就可以了剩下的就是下载了。如果你设置了还是不弹出我建议你看看,浏览器的文件下载设置。...
2021-09-28 10:27:18
983
原创 html转pdf
第一步maven <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.9</version> </dependency>
2020-09-22 09:06:37
536
原创 spring 连接Mongodb 带用户名密码
spring 连接Mongodb 带用户名密码<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:conte...
2020-09-14 14:14:28
635
原创 linux下mysql加载sql文件及加载压缩的sql文件
假设mysql 端口3306 账号 root 密码 password 数据库名称sakila表名 activity 备份sql 名称 sakila.backup.sql 压缩包名称 sakila.backup.sql.gz Linux 下mysql bin路径/usr/local/mysql-5.7.13/bin第一步执行export MYSQL_PWD=password说明:...
2020-01-21 15:21:17
1969
原创 mysql释放表空间
第一种optimize table table_nameoptimize table table_name 只对MyISAM, BDB和InnoDB引擎表起作用。在optimize table table_name运行过程中,MySQL会锁定表。第二种可以在表中新建一个字段或者将一个字段设置为not null通过触发modify column 操作 清除表的缓存...
2020-01-20 09:41:30
636
原创 spring-websocket在spring boot 中的使用
第一步pom.xml 引用 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-websocket</artifactId> <version>4...
2019-12-04 16:08:48
435
1
原创 Spring JPA 使用 NOT IN 查询
List<String> useridList = new ArrayList<>(); //需要注意的是这个位置 new ArrayList<>(); useridList 存的是 not in 中的参数Repository 接口中方法第一种带分页public Page<UserEntity> findByIdNotIn(...
2019-11-14 14:21:04
10407
原创 IDEA下某个module无法生成target
1.idea运行项目的时候无法产生target文件夹和下面的class文件。但是maven install 命令可以产生target 文件夹
2019-06-26 10:05:05
9677
原创 jpa 关联查询@JoinColumn name 和root.get("xx") 的区别
jpa UserEntity实体类中@OneToMany(cascade={ CascadeType.ALL }, fetch = FetchType.EAGER)@JoinColumn(name = "user_id", referencedColumnName = "id", foreignKey = @ForeignKey(name = "none", value = Constra...
2019-06-21 13:01:22
4667
原创 idea Module 'xxxxx' already exist in project. Please, specify another name.
idea 新建module 报错Module 'xxxxx' already exist in project. Please, specify another name.
2019-06-12 14:44:35
14907
6
原创 springboot mybatis xml版
1.添加相关maven文件<dependencies> <!--springboot mybatis--> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-...
2019-03-01 16:15:40
625
原创 基本配置
1. 颜色设置:(1) Window->Preferences->General->Editors->TextEditors->a. Backgroudcolors 背景颜色设置为RGB(204,232,207)b. Current linehighlight当前行高亮颜色 RGB (162,215,167)(2) Wi
2018-06-14 11:00:51
1027
原创 如何建立Webservice接口
1.建立一个java项目 2.建一个java类例子:public class PublishData {public String publishData(String json) {String re = json +"text";int batch = 0;return re ;}}类里面有方法3.建立webservice服务端1.
2017-02-15 16:24:46
812
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人