随笔分类 - Java
摘要:内存要大,最好4G以上。# docker pull gitlab/gitlab-ce# docker run -d -p 8443:443 -p 8090:8090 这两个端口号要写一样, 不能这样:8090:80, 以前的版本不知道, 我这个是这样的。 进到容器里,安装了netstat才发现,gi
阅读全文
posted @ 2020-09-10 20:40
北极熊129
摘要:MongoRepository的继承层次: (parent: spring boot 2.3.2) Repository \___ CrudRepository - save(),saveAll(),findById(),existsById(),findAll(),findAllById(),co
阅读全文
posted @ 2020-09-03 12:24
北极熊129
摘要:spring boot 远程build镜像, 并push到远程仓库
阅读全文
摘要:docker-compose spring boot nginx mysql redis
阅读全文
摘要:docker-compose spring boot redis mysql nginx
阅读全文
摘要:docker-compose spring boot nginx redis mysql
阅读全文
摘要:textual: http://perfectworldprogramming.com/introduction-to-spring-security-the-architecture-and-design/ (part 1) user => username and password as wel
阅读全文
posted @ 2020-03-13 23:40
北极熊129
摘要:https://www.callicoder.com/java-8-completablefuture-tutorial/CompletableFuture:Asynchronous programming -> non-blocking(task on a seperate thread, so
阅读全文
posted @ 2019-04-04 11:00
北极熊129
摘要:- id: admin-service uri: lb://admin-service predicates: - Path=/admin/** - Weight=service1, 90 filters: - SwaggerHeaderFilter - StripPrefix=1 - id: or
阅读全文
posted @ 2019-04-02 16:13
北极熊129
摘要:跨域 cors spring boot spring security
阅读全文
posted @ 2019-04-01 22:58
北极熊129
摘要:8 Archietcture and Implementation8.1 Technical Overview8.1.1 Runtime Environment there is no need to place any special configuration files into your j
阅读全文
posted @ 2019-03-24 22:29
北极熊129
摘要:用 postman 删除, 方法:delete url: http://ip:port/eureka/apps/服务名/注册名 服务名: spring.application.name: base, 要大写 注册名:就是eureka里显示的
阅读全文
摘要:原文: https://www.baeldung.com/spring-security-session1. Overview这里将讲一下 how spring security allows us to control our HTTP sessions这种控制的范围从session timeou
阅读全文
摘要:这个例子是自己写的,当然也是参照官方的文档,没有spring, 也没有spring boot. 就是普通的main()函数执行。 既然feign是http client, 肯定要有一个server, server是普通的spring boot的 RestController: server proj
阅读全文
摘要:最近研究netty, 做了一个测试. 环境: laptop一台(4核8G),vmware虚拟4台vm(centos 7.3) 192.168.1.125 (4核2G) 192.168.1.121 (2核1G) 192.168.1.122 (2核1G) 192.168.1.123 (2核1G) 服务端
阅读全文
摘要:** 原创文章,请勿转载 ** 在给spring boot 1.5.6 + thymeleaf 3进行国际化时,踩了一个坑(其实不止一个)。 现象: 看到了吧, 就是取值的key, 后面被加了_en_US 或 _zh_CN, 以及前后的问号。 先看下代码,首先两个资源文件: messages_en_
阅读全文
摘要:** 原创文章,请勿转载 ** 主要是想试下spring boot运行在docker里的感觉, 小试牛刀 :) 这是原文,参考一下: https://spring.io/guides/gs/spring-boot-docker/ 1. 环境 win10, eclipse, mvn, centos 7
阅读全文

浙公网安备 33010602011771号