java foundation Map interface

1, What is it? Interface map is a container accessed by key value pairs. Map < key, value > k represents key, and V represents value. It is an interface, so its implementation class should be used when using it. The commonly used ones are HashMap,Hashtable,LinkedHashMap, etc. All interfaces and implementation cl ...

Added by TRUCKIN on Thu, 02 Apr 2020 17:07:45 +0300

Beginners springboot integrated mqtt instance

Recently, we developed a kind of Internet of things related equipment, contacted with mqtt protocol, and found a lot of information on the Internet, but it is basically "half covered with Pipa", and there are always some missing contents. It may be that the authors don't think it's necessary t ...

Added by TheTitans on Thu, 05 Mar 2020 08:19:18 +0200

Traditional jsp+servlet upload file to server and save image address to database

Recently, the traditional Servlet+jsp method is used to realize the function of uploading the user's head image. It is found that it is much more difficult than using the spring boot framework to upload images. In the middle, there are also various problems. Please record them. Upload your head Firs ...

Added by GetPutDelete on Fri, 21 Feb 2020 17:13:09 +0200

Alicloud Internet of things platform custom Topic script parsing function demonstration

Summary Before, all the customized topics on the Internet of things platform were used for direct transmission of messages, instead of data script analysis similar to the model of things. The latest self defined Topic script parsing function of the platform. The device reports data through the self-defined Topic with the parsing mark (? sn=defa ...

Added by ojeffery on Thu, 30 Jan 2020 06:41:58 +0200

IDEA sums up the code of sharpening the knife

If you want to be good at your work, you must first make use of your tools. At present, countless Java programmers have replaced Eclipse in the stone age with InteliJ IDEA, a modern intelligent development tool. It's a great time to write code (joke, each has its own advantages, depending on personal habits) But every time I see other people us ...

Added by glansing on Tue, 21 Jan 2020 06:20:21 +0200

How to solve the source not found problem when viewing JDK source code in Eclipse

This article introduces how to view the JDK source code on eclipse. If you have used pysharm IDE under Python, you will find that it is not as easy to use as eclipse. As far as the source code function is concerned, it is not as e ...

Added by davidguz on Sun, 19 Jan 2020 06:08:06 +0200

Servlet3 specification directory structure

The directory structure of the platform is as follows: Put all the static resources, jsp and other information in resources/META-INF directory, which is not very understood. I used to put them in webapp/WEB-INF directory, so they can not be accessed directly through url. I can see a blog on the In ...

Added by micbox on Fri, 17 Jan 2020 03:11:09 +0200

Learning micro service to serve consumers - Feign

In addition to restTemplate+ribbon, there is another way to call between microservices: Feign 1. Create a feign service build.gradle file buildscript { ext { springBootVersion = '2.0.4.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion ...

Added by irishdreaming on Sun, 05 Jan 2020 06:27:40 +0200

[Eclipse Plug-in Development] expand the code prompt and completion of Eclipse XML Editor

Follow the great God of Wu Xuan Eclipse code prompt and completion plug-in Later, we found that the plug-in extension is the Generic Text Editor (org.eclipse.ui.editors.text.TextEditor) that comes with eclipse, so the scope is limited to this general text editor. After using the Design Page of eclipse's XML Editor (org. Eclipse. WST. XML. UI. I ...

Added by virendrachandak on Sat, 04 Jan 2020 06:10:51 +0200

Learning service consumers of microservices -- ribbon and restTemplate

Microservices will split a single large project into several independent small services. The call between these small services uses HTTP restful. Spring cloud provides ribbon+restTemplate. Ribbon is a load balancing client. 1. First, start the Eureka server project and the Eureka client say hi project. Its port is 8792. Then change the port fr ...

Added by Uzm on Sat, 04 Jan 2020 03:01:02 +0200