自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 2551

原创 Windows找不到文件“http://......”

我的是因为windows 没设置浏览器。找个浏览器给它设置成默认就行。

2024-02-01 14:37:36 370

原创 下载文件弹出保存文件位置的对话框

HttpServletResponse responseString filename=“”;response.setHeader("Content-Disposition", "attachment;fileName=" + new String(filename.getBytes(), "iso-8859-1"));这句就可以了剩下的就是下载了。如果你设置了还是不弹出我建议你看看,浏览器的文件下载设置。...

2021-09-28 10:27:18 837

原创 html转pdf

第一步maven <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.9</version> </dependency>

2020-09-22 09:06:37 449

原创 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 555

原创 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 1905

原创 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 582

原创 spring-websocket在spring boot 中的使用

第一步pom.xml 引用 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-websocket</artifactId> <version>4...

2019-12-04 16:08:48 381 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 10070

原创 IDEA下某个module无法生成target

1.idea运行项目的时候无法产生target文件夹和下面的class文件。但是maven install 命令可以产生target 文件夹

2019-06-26 10:05:05 9461

原创 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 4596

原创 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 14722 6

原创 springboot mybatis xml版

1.添加相关maven文件&lt;dependencies&gt; &lt;!--springboot mybatis--&gt; &lt;dependency&gt; &lt;groupId&gt;org.mybatis.spring.boot&lt;/groupId&gt; &lt;artifactId&gt;mybatis-spring-...

2019-03-01 16:15:40 583

原创 基本配置

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 982

原创 如何建立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 761

apache-activemq 消息队列包

apache-activemq-5.9.0-bin.zip

2017-04-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除