Spring Boot operation principle - Case Analysis (HttpEncodingAutoConfiguration)
After understanding the operation principles and main notes of Spring Boot, we will now briefly analyze the built-in configuration function of Spring Boot: the coding configuration of http.
When we configure Http coding in regular projects, we add a filter to web.xml, such as:
<filter>
<filter-name>CharacterEncodingFilter</filte ...
Posted by KFC on Thu, 03 Oct 2019 07:58:14 -0700
How to publish your own code on Github for others to use
In daily development, we all use third-party libraries written by others, so we can also publish our code to github for others to use.
First, we need to build a new warehouse named goutil and use public (private warehouse can't be seen by others!).
Then clone goes to the local place.
git clone https://github.com/startdusk/goutil.git
Here we use ...
Posted by lisa71283 on Thu, 03 Oct 2019 07:05:40 -0700
The Use Skills of bboltdb
Tricks
Bucket self-increasing key
Use NextSequence() to create self-incrementing keys, as shown in the following example
// CreateUser saves u to the store. The new user ID is set on u once the data is persisted.
func (s *Store) CreateUser(u *User) error {
return s.db.Update(func(tx *bolt.Tx) error {
// Retrieve the users bucket.
...
Posted by aussie_clint on Wed, 02 Oct 2019 22:45:13 -0700
Beginner's python crawler, 40 code teaches you to crawl the novel of Douban
This article has been written for a long time and has not been published.Reptilogy is about the same, I think this article is useful for novice practice. After all, this is what I practiced when I first learned to crawl. I crawled the websites that are easy to crawl, and they are also classical. Needless to say, there are annotations in every ...
Posted by NotVeryTechie on Wed, 02 Oct 2019 21:14:31 -0700
Java Basic Learning Framework 9 (Map Set with Repeatable key: Identity HashMap)
1. key in Map does not allow duplication, duplication is coverage.
_The value of key in all Map operations described earlier can not be repeated. For example, the value of key in HashMap operations can not be repeated. If repeated, it will certainly override the previous content.
Example 1 code:
pac ...
Posted by duncanwilkie on Wed, 02 Oct 2019 05:14:45 -0700
Spring cloud builds gateway through Zuul
In micro services, a unified gateway is usually added to all services. The gateway mainly performs routing forwarding and transverse section functions (such as authentication, log collection, current limiting and counting).
Step 1: As a maven project, add the specified package in pom.xml
<dependenci ...
Posted by aquarius on Wed, 02 Oct 2019 04:29:37 -0700
rocketmq Source Parsing NamesrvController Launch 2 Create mqclient 1
Said ahead
Last time
Source code analysis
Return to the method org. apache. rocketmq. tools. admin. DefaultMQ AdminExtImpl start
@Override
public void start() throws MQClientException {
switch (this.serviceState) {
case CREATE_JUST://Services are only started, not created
...
Posted by psy on Wed, 02 Oct 2019 04:24:14 -0700
The first part is day4- three login experiment, character encoding.
# Three login experiments
1 memu = {
2 "Shaanxi":{
3 "Xi'an City":{
4 "New urban area":["Daming Palace Site","Hanyuan Temple Site","Eighth Route Army Office"],
5 "Forest of steles":["Anbeilin Museum","Ming Dynasty City Wall","Little wild goose pagoda" ],
6 "Lianhu District":["bell to ...
Posted by reflash on Wed, 02 Oct 2019 03:04:47 -0700
vue packaged history mode and subdirectory static file path analysis
history
root directory
After the routing mode l changes to history, you need to configure url Rewrite on the server, create a web.config file in the root directory and copy it in with the following content
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
...
Posted by klaibert26 on Wed, 02 Oct 2019 03:00:44 -0700
08 Public Number Development - Receiving Other Common Messages (Pictures, Videos, etc.)
Receive other normal messages
Receive picture messages
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1348831860</CreateTime>
<MsgType><![CDATA[image]]></MsgType>
...
Posted by JasonO on Wed, 02 Oct 2019 00:36:59 -0700