Category:Program

  • Vue3 + vite + TS + element plus construction project (II)

    Time:2022-5-5

    In the last phase, we installed vite, managed the code to git, and used eslint to verify. Next, we installed vuex, router, SCSS, alias settings, etc. in the project 1、 Vuerouter Official website:https://router.vuejs.org/guid… 1. Installation npm install [email protected] 2. After installation, we will create a router directory under SRC directory and an index under router […]

  • Springboot custom exception handling

    Time:2022-5-5

    Global exception handling @ControllerAdvice @RestController public class GlobalExceptionInterceptor { //Exception exception @ExceptionHandler(value = Exception.class) @ResponseBody public Result exceptionHandler(Exception e){ e.printStackTrace(); LogUtil.writeLog(“error”,”log”,e.getMessage()+e.getStackTrace()); Result result = Result.errorResult(); if (e.getClass().equals(HttpMediaTypeNotSupportedException.class)){ result.setCode(-981); result. Setmsg (“request parameter format error”); }else{ result.setCode(-998); result. Setmsg (“system execution error”); } return result; } //Runtime exception @ExceptionHandler(value = RuntimeException.class) @ResponseBody public Result exceptionHandler(RuntimeException e){ […]

  • Bit shared code

    Time:2022-5-5

    Think in Component Bit is a component driven architecture for modern application development based on components. In the world of bit, everything is a component. Components can be combined into other components to finally form an application app, that is, app is also a kind of component. This provides a new idea for our development: […]

  • Found a problem that postman automatically generates interface calling code

    Time:2022-5-5

    Postman is an interface testing and verification tool often used by programmers. Click the button below in postman to see the implementation code in different programming languages corresponding to the interface call in code snippet. For example, automatically generate the corresponding jQuery Code: However, I found that these automatically generated codes can not be directly […]

  • Dandelion · Jerry technology weekly Vol.33: front end basic class begins ~

    Time:2022-5-5

    Dandelion · Jerry technology weekly Vol.33 Page file too large? The picture is too big; Page load white screen? It is likely that the font file has not been loaded; Page loading time too long? Mostly the main process is blocked… What should I do? Come to Xiaokui, cough up. Take a look at the […]

  • Fluent: introduction to bloc mode

    Time:2022-5-5

    Original text:Fluent: introduction to bloc mode Learn how to use the popular bloc pattern to build a fluent application and use dart streams to manage the data flow through widgets. Designing the structure of an application is often one of the most controversial topics in application development. Everyone seems to have their favorite architectural model […]

  • vue. config. Implementation of configuring webpack in JS to improve code compilation speed

    Time:2022-5-5

    Refer to relevant documents: One line of code can make the project start more than 70% fasterhttps://mp.weixin.qq.com/s/eS… The following two methods can improve the compilation speedThe speed of starting local projects is generally slow for the first time, and the speed increases a lot after the second time Install the plug-in in the development environment […]

  • See, this is what modern PHP should look like

    Time:2022-5-5

    This is a community collaborative translation article. The translation has been completed. For more information, please clickIntroduction to collaborative translation 。 The title of the article is really pretentious, isn’t it? Yes, although we have worked with PHP for many years, can we tell which are the best practices and tools? I can’t, but I’m going […]

  • Node. JS subway salon Wuhan hot and dry noodles package collection topic

    Time:2022-5-5

    May is a good month, and Wuhan in May is also very beautiful. In 2020, the epidemic was rampant, and we had no choice but to stop the node subway for some time. In March this year, we restarted the node subway; In May this year, we decided to witness the new vitality of Wuhan […]

  • Xamarin forms labs RadioButton control

    Time:2022-5-5

    Today, take RadioButton control as an example to introduce how xamarin forms labs is used in our project XLabs is a open source project that aims to provide a powerful andcross platform set of services and controls tailored to work withXamarin and Xamarin Forms. Xlabs is an open source project that provides cross platform services […]

  • 【GO】go.mod

    Time:2022-5-5

    go moduleUse preconditions:GO111MODULESet to on Initialize a new module in the current folder and create go Mod file;go mod init name Pull the missing module and remove the unused module:go mod tidy Copy dependency to vendor:go mod vendor Download dependency:go mod download Inspection dependency:go mod verify Display module dependency diagram:go mod graph Explain why you […]

  • HTML draggable attribute

    Time:2022-5-5

    draggable This attribute specifies whether the element can be dragged. By default, links and avatars can be dragged event Dragged element ondragstartInstant trigger of dragging ondragContinuous triggering during dragging ondragendDrag end trigger Target element ondragenterTrigger for entering the target element (mouse cursor entry) ondragoverEntering and leaving the target element is triggered continuously ondragleaveTriggered when leaving […]