• . net core2.2 simplified dependency injection scrutor


    Dependency injection Introduction to official website https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-2.2 Scrutor Open source address: https://github.com/khellang/scrutor Reference document https://www.cnblogs.com/catcher1994/p/10316928.html Manual management of dependency injection is too cumbersome. When there are multiple repositories and services that cannot be injected uniformly, scrutor can help us simplify the di registration of asp.net core. In configservices, we need to inject warehousing, services and […]

  • Apache simple page caching


    Maintain a set of website system, because of a long time, I don’t know how to open and operate its static system, and because there are too many queries on the home page and some channel pages, the operation is slow, so a simple and effective method is urgently needed to improve the access efficiency. […]

  • Spring boot 2.0 + activiti 7 integration (2) — running a simple process


    According to the previous article, springboot2.0 + activiti 7 integration (1) – get to know activiti and create database operation, and have created the database of activiti; next, run a simple official example. Official demoTo run an activiti demo, you need at least three parts: API + springboot of activiti Activiti’s database BPMN file 1. […]

  • Bash technique: using case compound command to match specific pattern for processing


    In the bash shell of Linux,caseCompound command can execute the corresponding command when matching a specific pattern. Check the case command description in man bash as follows: case word in [ [(] pattern [ | pattern ] … ) list ;; ] … esac A case command first expands word, and tries to match it […]

  • Tornado template default compression of white space characters causes coffee to not indent correctly


    The first time I wrote coffee script in tornado, I was shocked by the result As you know, the lazy way of writing coffee script is to start directly in HTML <script type=”text/coffeescript”> </script> However, tornado’s template mercilessly removes all indentation (for HTML and JS files, this is compression) Open template.py of tornado and have […]

  • Windows Server 2016-ps filter export user mailbox property contains a field list


    In the production environment, we often encounter the situation of ending with multiple mailbox aliases. How to quickly export the user list information of the current domain user mailbox ending with a certain field or suffix becomes particularly important. In this example, how to quickly filter out the user list of the current mailbox information […]

  • Implementation of PHP Framework Routing under [PHP] Deep Resolution Nginx


    When all frameworks process business requests, they process the path part of the URL and assign it to the specified code.The key to this functionality is to get the data for the URL portion in the $_SERVER global variable. When the requested path ishttp://test.com/article?id=1http://test.com/article/update?id=1 Supporting the above URL mode, there is no need to configure […]

  • JavaScript & jQuery method comparison


    Reference link: https://juejin.im/post/5d2705d8e51d4577407b1dda Refer to the comment link http://youmightnotneedjquery.com/ JavaScript method getElementById() QuerySelector () matches the first element of the specified selector. QuerySelectorAll () returns all elements. createElement() createTextNode() insertBefore() firstChild() removeChild() getAttribute() setAttribute() .value addEventListener() removeEventListener() cloneNode() $(“…”).html(); document.querySelector(“…”).innerHTML=””; Specifies the element to insert content. $(“…”). append (); ending var list = document.querySelector(“…”); var […]

  • Docker Container Related Commands


    Doker run pulls the image directly from the docker hub. If it’s available locally, it uses it directly. There are two parameters – D – it, – D is a separate mode, – it is an interactive mode, and – D is more. Docker pull pulls directly from the hub, images list all local mirrors, […]