Spring Boot integration docker

I. what is docker? brief introduction Docker is an open source engine, which can easily create a lightweight, portable, self-sufficient container for any application. The containers that developers compile and test on laptops can be deployed in production environment in batches, including VMs (virtual machine), bare metal, OpenStack cluster and ...

Added by ClyssaN on Thu, 05 Dec 2019 11:10:18 +0200

Enterprise spring boot tutorial springboot integration docker

This article introduces how to build a docker image for the springboot program. Docker is an open source application container engine based on Go language and Apache 2.0 protocol. Docker allows developers to package their applications and dependencies into a lightweight, portable container, and then publish them to any popular L ...

Added by Jimmy_uk on Sat, 30 Nov 2019 12:59:13 +0200

[SpringBoot] Add Filter to SpringBoot

Because springboot is based on servlet 3.0+, the embedded tomcat container cannot configure Filter in web.xml as before. This article is based on springboot 1.5.6 First @WebFilter(filterName = "myFilter",urlPatterns = "/*") public class MyFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ...

Added by mblack0508 on Thu, 28 Nov 2019 05:50:07 +0200

Spring MVC annotation development

ps: it's relatively simple. It's used to lay the foundation for us to use springboot I. project construction (1) guide packet <!-- servlet --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>4.0.0</version> <scope>provided ...

Added by zyntax on Wed, 20 Nov 2019 16:41:11 +0200

Spring Series-Actual Text-Development Based on mongodb

1. Preface In our enterprise development, the most commonly used are relational databases (oracle, mysql, sqlserver, etc.). These jdbc-Based data interaction methods can be achieved by integrating mybatis in spring, which is explained in this series of articles "Spring Series - Actual Warfare (4) - How you know MyBatis". However, for ...

Added by celsoendo on Sun, 17 Nov 2019 12:00:46 +0200

[Practice Exercise, Reject 996]-SpringBoot 2.x Custom Spring boot Starter

Welcome to your attention Increase in Competency and Waiting Interview knowledge, job ready Practice Exercise, Refuse 996 If this article is helpful and enjoyable to you, please give it a compliment! Preface Does it feel difficult to get promoted at work? Do you find job interviews so difficult? Do you feel like you are working overtime ever ...

Added by chetanrakesh on Sun, 17 Nov 2019 03:49:35 +0200

SpringBoot from getting started to giving up, Chapter 2

I. Profile multi environment support 1. Multiple Profile files When we write the main configuration file, the file name can be: application-{profile}.properties/yml application.properties is used by default 2. yml supports multi document block mode server: port: 8080 spring: profiles: active: dev ##Activate dev configuration bl ...

Added by tim on Wed, 13 Nov 2019 06:54:26 +0200

WebMvcConfigurer add interceptor

problemThe previous project is springboot1.5. Later, I want to upgrade to 2.0. But after upgrading, I found that the webmvcconfigureadapter abstract class is out of date @Deprecatedpublic abstract class WebMvcConfigurerAdapter implements WebMvcConfigurer { /** * {@inheritDoc} * <p>This implementation is empty. */ @Override public void ...

Added by lozza1978 on Tue, 12 Nov 2019 17:40:47 +0200

Spring boot2 thymeleaf JS / CSS version control

Springboot 2.2.0.RELEASE 1. Enable version control By appending md5 code to the request js/css or manually adding version number to ensure that the content of js/css can be loaded by the browser in time when it changes: yml configuration spring: thymeleaf: mode: HTML cache: false resources: chain: strategy: conten ...

Added by mrfruits on Wed, 06 Nov 2019 20:06:58 +0200

Eclipse build spring boot project file upload

Knowledge points: SpringBoot2.x file upload: HTML page file upload and back-end processing 1. Upload the springboot file to MultipartFile file, which is from spring MVC1) direct access to static page: localhost:8080/index.html Note: if you want to access the html page directly, you need to put the html under the folder loaded by springboot ...

Added by Zeon on Sat, 02 Nov 2019 19:16:42 +0200