Author: giacatdu
Spring Framework Logo

Note on migrating Spring Boot 1.5 to 2.0

1. Useful links First of all, you should read recommended links: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Release-Notes https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Migration-Guide https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Configuration-Changelog https://spring.io/blog/2017/06/20/a-preview-on-spring-data-kay#improved-naming-for-crud-repository-methods 2. Tips and solution for problems Table ‘hibernate_sequence’ doesn’t exist Solution: Add config spring.jpa.properties.hibernate.id.new_generator_mappings=false Spring Boot 2.0 use HikariCP by default, so you should add config for HikariCP Solution: Add config…

Elastic Search

Limit elasticsearch official docker container memory

Pull Elasticseach official docker image: docker pull docker.elastic.co/elasticsearch/elasticsearch:5.6.3 Run new container with parameter -e “ES_JAVA_OPTS=-Xms256m -Xmx1g”: docker run -d \ –net meete \ –name elasticsearch \ –hostname elasticsearch \ -e “ES_JAVA_OPTS=-Xms256m -Xmx1g” \ -e “http.host=0.0.0.0” \ -e “transport.host=127.0.0.1” \ -e “xpack.security.enabled=false” \ docker.elastic.co/elasticsearch/elasticsearch:5.6.3 Reference link: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html