In the first sentence of the body, add “PK creativity makes Spring Festival, I am participating in the” Spring Festival Creativity Submission Contest “. For details, please see: Spring Festival Creativity Submission Contest.

preface

  • New Year new atmosphere; Today we have a fun, usually springboot development backend programmers essential stack. Remember we had a boot screen when SpringBoot started up.
  • Have you ever wondered how the startup screen works? It’s really simple. All we have to do is put a branner.text file in the Resources folder. The text you put in the file is the text that launches the screen. The following

The effect

  • When I started my own project, I saw a big logo. Happy New Year. Chinese New Year should have the atmosphere of Chinese New Year, so that every time I start a project, I can feel the atmosphere of Chinese New Year.
                                                                                                                                                                                              
                                                                                                                                                                                              
   .                 _________   _._   _________   _._                               _._        __.__                                              __.__. '|\ |. ' '-.\ |. ' '-.. - - - "-"._     _. -... -. - "'. < |\        .'```'.    '\        .'```'.    '\ \ / /.. -.. /.-' "'-. './\    \ \   //           \ \ / /. - "'" '-. `.. -,. -. | |__     \      |       \     \      |       \     \ \ / / | '/ /________\   `\ \  //\ \ //             \ \      / /     /________\   \   __|. -. | | |. ' ' '-.. : -.. | | | | | | | |\ \    / /            |  |   |  |                  | \ `//  \ '/               \ \ / / | |. : -- -- '. | | | | | | /. ' ' './ / |   \ |   |      \ /. |\ /.\ \  / /             |  |   |  \ . -- -- -- -- -- -- -- -- -- -- -- -- -- '\ |   |/                 \ \  / / \ . -- -- -- -- -- -- -- -- -- -- -- -- - / |\ | | | | | | / | | `"__ | |   |     |\ `'-. -' | |\ `'- -'\ `  /              |  |   |  |\    '-.____. -. '\ `  /   \    '-.____. -- - `"__| | | | '- | | | |.'. '| | | |' -... - '` | |' -... - '`\ / | | | | `.."\ / `.. '. '. ' '| | | | | | | | / / | |_. "'... '. / / | | | | ` '-... - '/ / `' -... - '/ / | | | | |'. | '\ \._.\ '-- -- -- -- -- -- -- -- -- -- - "-- -- -- -- -- -- -- -- -- -- -' | ` - '/ | | | | | ` -' /\ \._.\ '|_| '-' '- ` -' ` "'.. "' - '-'.. '` - `"Copy the code
                           ___. - : '" ": -... (\
                    .-':'"":   :  :  :   :  :  :.(1\.'-..'. : : : : : : : : : :.'; :-`. : . : : `. : : :. : :`.`. a; :; -. ` -....._.: :: ::.. '., =; : - :. `. -._-., :: : ::,.'.-'; -., "'" '. '; '.. -' -.: : : : :; ... -'... '-'...' -'... '-'...' -'... '-'...' -._; . : -- "'" ~; ._. -; ` : ':'; ` -.; :. -'. '" : :; `.; : =; '. -'. : '. : - : `._-'. ' '. '-'.'._; ` '"' |_____ | _____        \     /   /______    |  |     / /_  /    | |
  ()____) + ()____) -- -- -- -- - / | | - + -. /_. |_|/_.   | |
  ()____) + ()____)      \ /  /___   __|__/ / | | | | | | | | ()____) + ()____) -- -- -- -- - | | | | |_| _|_|_ /_\ `- '/_\   | |
  ()____) + ()____)     __|__ | |  __|_|____   |  |     ___|___    | |
  ()____) + ()____) / |\  | |      |       | / \     _/|\ _     * *
       / | \
Copy the code
.; '. :! |! ':' '!$&@ @ @ @ @ @ @ @ @&$% | | % % '
                   :$&&&&&&$$&$$$&&&&$$$&&%!!!!! '. |&$$$$&&% % $$$$& & & & $& @ && @ $$% % % `
               ;$$$$$$$% % % % % % % $& $$$% % % $& @ @ & $$& @ &;
              :$$$$% % % % % % % % $& $$% % % % % % % $& @ && $$$& & & & :` |$% % % $$$$$% % % & $$$$$$% % % % % % && $$% $$$& &&! .
             '% % % % % $& $$$$$& $% % % $$$$$$% % % % % % % % % % $$$$$!!! .` |$% % && $$$&& && % % % $$$$$$% % % % % % % % % % % $& $$$$.
              ;&$% && $$$& & & $% % $$$$$$% % % % % % % % | % % $&& $$$& | ` `; '
               !&$&&$$$$$&&$% $$$& $% % % % % % % % % % $$$$% % $$| & ` ` '| $& $&!
                ;&$&&&@ @ @&&&$$% % $$$&& $& $$$$$% % % % % % % % $; : | $$% % % % $$$$$@ @ @ $$% '. |&@ @ @&$$$&@ @&$$&&$$&$$$$% % % % % % % % % $| `! @ % % $$$$& $& $$$$$& @ @ |.
                   `% & %! :;; :; $@ @ $$% && $$$$&& % % % % % % % $!!! ..! & @ && | $$$$$% % & $@ $$%;`;;; : ` ` `;| % % % % % % && $$&& @ & $$% $$$$&! . : | & $$$& & & & % $@ & $& @ @ $$% | `:! `. ` ` ` ':; ' '!$&@ @ @ @ @&&&$$$&&&! . :$$$$||$$$$$% % @ $% & % % @!`; : ` `.. : : '`'! ; . ` :; !!!!!!!!! ; : `;$% % $$$$& @ $$$$$$& % % &&;`; ! : `. '; '. ' '` ` : : ` |$$&&&@&|$$% && @ & $%! % @ $:. | | ';; '` : : :! ; ! | : '% $% % $$& @ $% % | $@ & $$$& @ & % $&!: |$$% % % %; '% $$& @ @ # @ @ $$$$$$% % && | $$$% :
                                             `;% && : : $| | $$$% $& $& $| & @ & $$$& % '
                                        '% && $& @ $$%; : $$$% % && $$$$% %! $$$$& $% % % &&! .
                                    '$@$$% % % % % % $@ @; '| % % $$& $& @ $$% @ & | $$% % $% %'
                                 `% @ & $$% % % % % % % $& @ &; ! & % % % $$$$& | | | % $$& & & & @ & $| '! @&&$% % % % % % % $& @ @ & $: '% % $$$$$$$$$| | $%; '
                                !#@$$&&%! : | & @ @ $$% & ` : & @ & $$$&!. |&$@ @&%%%$|%&$%%&!                  .!&&&||&%`                             
                               :$&% % $%! ;;; | $$% % $$:; & $$$'
                               !&$% % $$&& @ $$% % $& & | `
                              :$$$$% % % % % % % % % % % $$;
                             `$$$% % % % % % % % % % % $$$| `
                            .!&$$$% % % % % % % % % % $$$:
                            ;$% % % % % % % % % % % % % % $&;
                            '% @ && $$% % % % % % % % % $;
                                 '!$&@ @ @ @ @&! `Copy the code
  • We can also generate the text we want based on the shape of the image. This makes our Spirngboot look even more New Year’s.

  • Above is the configuration of springMVC that we started to configure in XML form. You can probably see the important roles in MVC configured with controller layer scan paths, message decoders, attempt resolvers, etc. There are actually filters and interceptors and things like that in MVC.

Filters & interceptors

  • Filters and interceptors are a preprocessing of methods. For example, we now need to implement a logging function, which needs to record the information and time and status of each interface call. Interceptors and filters can be implemented.
  • So how are they different? There is a difference

implementation

  • The implementation of filters registers the filter class to the filter chain, which then calls back to specific filters one by one. It’s a normal Java call, in design mode, in data responsibility chain mode, where each filter does its own business and then decides whether to let it go!
  • But interceptors are implemented in an AOP-based manner, intercepting beans in a dynamic proxy.