首页
学习
活动
专区
工具
TVP
发布

Netkiller

http://www.netkiller.cn - 区块链·多维度架构
专栏作者
342
文章
619639
阅读量
100
订阅数
Springboot @RequestBody 传递 List
本文节选自电子书《Netkiller Java 手札》 6.1.4.1. @RequestBody 传递 List package cn.netkiller.api.restful; import java.util.List; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.spri
netkiller old
2018-03-06
9.7K0
Spring boot with Thymeleaf
本文节选自电子书《Netkiller Java 手札》 5.19. Spring boot with Thymeleaf 5.19.1. Maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 5.19.2. application.properties #spring.t
netkiller old
2018-03-06
8750
Spring boot with ELK(Elasticsearch + Logstash + Kibana)
本文节选自《Netkiller Java 手札》 5.31. Spring boot with ELK(Elasticsearch + Logstash + Kibana) 将 Spring boot 日志写入 ELK 有多种实现方式,这里仅提供三种方案: Spring boot -> logback -> Tcp/IP -> logstash -> elasticsearch 这种方式实现非常方便不需要而外包或者软件 Spring boot -> logback -> Redis -> logstash
netkiller old
2018-03-06
2K0
Spring boot with Hive
本文节选自《Netkiller Java 手札》 摘要: spring boot 1.5.6 + hive 2.3.0 + hadoop 2.5.0 + hbase 1.3.1 5.29. Spring boot with Apache Hive 5.29.1. Maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </
netkiller old
2018-03-05
4.4K0
Spring boot with Apache Hive
本文节选自《Netkiller Database 手札》 5.26. Spring boot with Apache Hive 5.26.1. Maven <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>org.springframew
netkiller old
2018-03-05
2K0
Spring boot with Elasticsearch 5.5.1
Spring boot with Elasticsearch 5.5.1 本文节选自《Netkiller Java 手札》 作者:netkiller 网站: http://www.netkiller.cn 5.27. Spring boot with Elasticsearch 5.5.x Spring data 目前还不支持 Elasticsearch 5.5.x 所以需要通过注入 TransportClient 这就意味着使用 5.5.x 版本你无法使用 ElasticsearchRepository
netkiller old
2018-03-05
1.8K0
Spring boot with Git version
本文节选自《Netkiller Java 手札》 5.23. Spring boot with Git version Spring boot 每次升级打包发给运维操作,常常运维操作不当致使升级失败,开发怎样确认线上的jar/war包与升级包一致呢? 请看下面的解决方案 5.23.1. CommonRestController 公共控制器 所有 RestController将会集成 CommonRestController package cn.netkiller.api.rest; import
netkiller old
2018-03-05
6250
Spring boot with HTTPS SSL
本文节选自《Netkiller Java 手札》 5.24. Spring boot with HTTPS SSL 5.24.1. 生成自签名证书 keytool -genkey -alias www.netkiller.cn -keyalg RSA -keystore /www/netkiller.cn/www.netkiller.cn.keystore 导入证书(Windows) keytool -selfcert -alias www.netkiller.cn -keystore w
netkiller old
2018-03-05
1.2K0
Spring boot with PostgreSQL
本文节选自《Netkiller Java 手札》 作者 netkiller 他的网站 http://www.netkiller.cn 5.15. Spring boot with PostgreSQL 5.15.1. pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <de
netkiller old
2018-03-05
1.5K0
Spring boot with Service
本文节选自《Netkiller java 手札》 5.7. Service 5.7.1. Application @ComponentScan({ "web", "rest","service" }) 一定要包含 Service 目录。否则无法实现 @Autowired自动装配。你可以直接@ComponentScan扫描所有目录。 import org.springframework.boot.SpringApplication; import org.springframework.boot.aut
netkiller old
2018-03-05
7810
Spring boot with Docker
本文节选自 《Netkiller Linux 手札》 163.6.1. Spring boot with Docker 163.6.1.1. 获取 CentOS 7 镜像 docker pull centos:7 # docker pull centos:7 7: Pulling from library/centos 343b09361036: Pull complete Digest: sha256:bba1de7c9d900a898e3cadbae040dfe8a633c06bc104a0df7
netkiller old
2018-03-05
6290
Spring boot with Apache Kafka
本文节选自电子书《Netkiller Java 手札》 5.21. Spring boot with Apache Kafka Spring boot 1.5.1 5.21.1. 安装 kafka 一下安装仅仅适合开发环境,生产环境请使用这个脚本安装 https://github.com/oscm/shell/tree/master/mq/kafka cd /usr/local/src wget http://apache.communilink.net/kafka/0.10.2.0/kafka_2.12-
netkiller old
2018-03-05
1.1K0
String boot with Apache kafka 完整的发布订阅例子
本文节选自电子书《Netkiller Java 手札》地址 http://www.netkiller.cn/ 5.21.7. 完整的发布订阅实例 上面的例子仅仅是做了一个热身,现在我们将实现 一个完整的例子。 例 5.5. Spring boot with Apache kafka. SpringApplication package cn.netkiller; import org.springframework.boot.SpringApplication; import org.spring
netkiller old
2018-03-05
8200
Spring boot with Redis
本文节选自《Netkiller Java 手札》 11.18. Spring boot with Redis 11.18.1. maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> </dependency> 11.18.2. application.properties spring.redis.database
netkiller old
2018-03-05
8530
Spring boot 将 Session 放入 Redis
本文节选自《Netkiller Java 手札》 Spring boot 将 Session 放入 Redis 11.19. Session 11.19.1. Redis 11.19.1.1. Maven 增加下面代码到pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> </dependency> <dep
netkiller old
2018-03-05
4.3K0
Spring boot with Scheduling
本文节选自《Netkiller Java 手札》 http://www.netkiller.cn/java/spring/boot/index.html 11.17. Spring boot with Scheduling 11.17.1. Application.java package api; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableA
netkiller old
2018-03-05
8740
Spring boot with Spring security
本文节选自 《Netkiller Java 手札》 地址:http://www.netkiller.cn/java/index.html 9.15. Spring boot with Spring security 9.15.1. Maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency
netkiller old
2018-03-05
1.1K0
Spring Boot 快速开始
节选自 《Netkiller Java 手札》 11.2. Spring Boot 11.2.1. pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0
netkiller old
2018-03-05
5740
Spring Boot MongoDB 实例
节选自《Netkiller Java 手札》 11.12.3. Spring boot mongodb import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.
netkiller old
2018-03-05
9040
Spring Boot · Mongo Repository
本文节选自《Netkiller Java 手札》 http://www.netkiller.cn/java/ 11.12.5.1. MongoTemplate pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 htt
netkiller old
2018-03-05
1.3K0
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档