随笔分类 -  JAVA

上一页 1 ··· 7 8 9 10 11 12 13 下一页
JAVA
摘要:本文基于:MongoDB 读写分离——MongoDB 安装 参考:https://docs.mongodb.com/manual/tutorial/deploy-replica-set-for-testing/ Master-Slave 主从复制 实现数据同步只需要在某一台服务器启动时加上"-mas 阅读全文
posted @ 2020-12-22 15:56 VipSoft 阅读(394) 评论(0) 推荐(0) 编辑
摘要:先到 https://www.u.tools/ 下载 uTools ,里面有好多插件, 下载安装后,打开uTools工具,搜索“内网穿透” 直接支持https,对于有https要求的,非常方便 点右边的图标,或者直接搜索 安装好后,到已安装里选择打开 阅读全文
posted @ 2020-12-10 09:10 VipSoft 阅读(180) 评论(0) 推荐(0) 编辑
摘要:通过 itextpdf 的 HtmlConverter.convertToPdf(); 方法生成的pdf 有点让人失望,CSS啥的不起作用了,(有可能我用得不对) 后来用 wkhtmltopdf.exe 做了 网页生成PDF 效果还可以,下面是JAVA代码,C#的差不多 public static 阅读全文
posted @ 2020-10-21 08:48 VipSoft 阅读(697) 评论(0) 推荐(0) 编辑
摘要:自带的 Alt+ Insert 中的 Getter and Setter 生成的属性,不能将 private 字段中的注释带过去,比较尴尬。可以通过两种试。 1. 修改模板:这种方法不能得到 private 字段上的属性 2. 下载插件:https://plugins.jetbrains.com/p 阅读全文
posted @ 2020-09-28 14:11 VipSoft 阅读(2231) 评论(0) 推荐(0) 编辑
摘要:SpringBoot 引用仓库中没有 第三方包 - 将jar 包安装本地 maven, $ mvn install:install-file -Dfile=d:\Java\jave-1.0.2.jar -DgroupId=it.sauronsoftware -DartifactId=jave -Dversion=1.0.2 -Dpackaging=jar java.lang.NoClassDefFoundError: it/sauronsoftware/jave/EncoderException at java.lang.Class.getDeclaredConstructors0(Native Method) 阅读全文
posted @ 2020-08-28 14:19 VipSoft 阅读(607) 评论(0) 推荐(0) 编辑
摘要:JWT token验证后,通过 ThreadLocal 进行传值 https://jwt.io/#debugger 官网提供的 JAVA 工具还是挺多的,选了个 Star 比较多的 https://github.com/jwtk/jjwt 代码结构如图:需要源码联系QQ:47262947 1. 添加 阅读全文
posted @ 2020-07-05 17:45 VipSoft 阅读(438) 评论(0) 推荐(0) 编辑
摘要:简单安装为了集成 SpringBoot,真实使用,增加增加更多配置,比如将log映射出来 1.安装 zookeeper [root@centos-linux ~]# docker pull wurstmeister/zookeeper [root@centos-linux ~]# docker pu 阅读全文
posted @ 2020-07-03 22:35 VipSoft 阅读(1397) 评论(0) 推荐(2) 编辑
摘要:1. 创建仓库 管理里面,可以查看详细的信息 设置登录密码 2. 接下来,将本地镜像推到阿里 : SpringBoot Docker 发布 docker commit 这部分可以不操作 docker commit -m "提交信息" -a "作者" 容器id 要创建的目标镜像名:标签名 [root@ 阅读全文
posted @ 2020-06-27 20:31 VipSoft 阅读(333) 评论(0) 推荐(0) 编辑
摘要:本文是手动模式,可以移步 Intellij IDEA 集成 Docker 发布 使用 Intellij 集成Docker 发布,比较方便 pom 文件 <groupId>com.vipsoft.boot</groupId> <artifactId>vipsoft-web-boot</artifact 阅读全文
posted @ 2020-06-27 19:01 VipSoft 阅读(686) 评论(0) 推荐(0) 编辑
摘要:Profile Config 多环境不同配置 1.添加 Pom 文件 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> < 阅读全文
posted @ 2020-06-20 22:51 VipSoft 阅读(557) 评论(0) 推荐(0) 编辑
摘要:http://localhost:8080/swagger-ui.html 弹出: 解决方法:除了SwaggerConfig 上要加@EnableSwagger2 ,启动类上也要加 重启再次访问如下 阅读全文
posted @ 2020-06-20 22:50 VipSoft 阅读(4436) 评论(0) 推荐(0) 编辑
摘要:想让你的windows下 cmd 和我的一样帅吗。下载 cmder 绿色版,然后用我的配置文件,替换原来的文件启动就可以了 另外加cmder添加到右击菜单中,到安装目录中,执行下面命令 Cmder.exe /REGISTER ALL 配置文件下载:cmder 配置下载 报:no main manif 阅读全文
posted @ 2020-06-06 18:55 VipSoft 阅读(1740) 评论(0) 推荐(0) 编辑
摘要:Java 项目工程搭建 --创建父工程 Java 项目工程搭建 --创建子模块(依赖父工程) 这个建方比较干净,不会生成乱七八糟的东西,(建完以后,其它模块可以 Copy 改名字) 选择 Maven 直接下一步 只要输入一个AtifactId 没有过多的依赖,适合专业人事 建主启动程序 建 cont 阅读全文
posted @ 2020-06-06 14:52 VipSoft 阅读(2529) 评论(0) 推荐(0) 编辑
摘要:一下篇,常用 Java 项目工程搭建 --创建子模块(依赖父工程) 也不算常用,常用的是 ctrl+c、ctrl+v ,哈哈 Package要手动改下,生成的很丑 选能支持 Alibaba Cloud 的版本,2.2.7支持Cloud 所以这边 boot 选 2.2.7,如果是 2.3.X 这边左边 阅读全文
posted @ 2020-06-06 14:35 VipSoft 阅读(1533) 评论(0) 推荐(0) 编辑
摘要:Java 项目工程搭建 --创建父工程 Java 项目工程搭建 --创建子模块(依赖父工程) Intellij 2018 更多详细内容见尚硅谷阳哥视频,实际项目中更多的是copy,修改pom Intelij IDEA 隐藏 .idea 设置字体 启用注解支持 编译使用 java 8 <!-- 统一管 阅读全文
posted @ 2020-06-05 23:14 VipSoft 阅读(709) 评论(0) 推荐(0) 编辑
摘要:1. 关闭 Intellij IDEA (2018以下的版本无效),打开 workspace.xml 找到 RunDashboard 节点。添加如果配置 <option name="configurationTypes"> <set> <option value="SpringBootApplica 阅读全文
posted @ 2020-03-29 14:39 VipSoft 阅读(352) 评论(0) 推荐(0) 编辑
摘要:开发修改代码后,无需重启idea的服务。 1 模块中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</ 阅读全文
posted @ 2020-03-29 12:58 VipSoft 阅读(261) 评论(0) 推荐(0) 编辑
摘要:用的apache-maven-3.6.2 报错,解决方法:降级成 apache-maven-3.6.1 版本 IDEA 报 Unable to import maven project: See logs for details,到log目录下查看详细日志 2020-03-28 22:38:04,5 阅读全文
posted @ 2020-03-28 23:14 VipSoft 阅读(1798) 评论(0) 推荐(0) 编辑
摘要:9001 POM.XML <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2020-03-25 22:34 VipSoft 阅读(628) 评论(0) 推荐(0) 编辑
摘要:新建一个配置类 package com.cloud.client.user.feign; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanDefi 阅读全文
posted @ 2020-03-25 10:46 VipSoft 阅读(4856) 评论(0) 推荐(1) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 下一页