Tag:main program

  • C + + – thread pool

    Time:2021-12-17

    1. brief introduction This paper first introduces boost Use the thread pool provided by ASIO, and then manually implement a thread pool. 2. Boost. ASIO thread pool Download:https://sourceforge.net/proje… Used in vs: Project – properties – VC directory – include directory, add yourpath \ asio-1.18 2\include Official documents:https://www.boost.org/doc/lib… #include <iostream> #include <atomic> #include <asio.hpp> using namespace […]

  • [problem analysis] write it down once__ do_ global_ ctors_ Coredump caused by AUX

    Time:2021-12-7

    Problem description During a C + + code test at work, a serious problem was fed back at the same time. During the operation of my code, coredump will occur with 100% probability. The results of GDB parsing the core file are as follows (irrelevant contents are omitted): #0 0x00007fcd165a1265 in raise () from /lib64/libc.so.6 […]

  • Springboot basics review – 8

    Time:2021-11-18

    2.2 automatic configuration (start process) Concept: when we add jar package dependencies, we can automatically configure the related configurations of some components for us. We can run the written project without configuration or only a small amount of configuration Question: how is spring boot automatically configured and which components are automatically configured? The startup entry […]

  • Teach you how to deploy your own private customer service system (2)

    Time:2021-10-14

    Recently, due to the needs of the project, I wanted to find an online customer service system. After tossing for a week, I found a treasure. I can directly download the privatization deployment. The common functions are relatively complete. The rare thing is that the interface is simple. Share the installation and deployment process. This […]

  • Spring boot 1. Getting started

    Time:2021-10-8

    Introduction to spring boot Spring boot is used to simplify spring application development. The Convention is greater than the configuration. To simplify, just run can create an independent, product level application Background:J2EE has heavy development, various configurations, low development efficiency, complex deployment process and great difficulty in third-party technology integration. solve:“Spring family bucket” era.Spring boot […]

  • Principle of execution

    Time:2021-6-4

    2.4 execution principle Each spring boot project has a main program startup class. In the main program startup class, there is a main () method to start the project. In this method, the whole spring boot program can be started by executing springapplication. Run(). Question: how does the springapplication. Run () method start the spring […]

  • Spring cloud10 spring boot integrates rabbitmq

    Time:2021-1-6

    1、 Springboot integrates rabbitmq Six working modes were analyzed 1. New project 2. pom.xml <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.4.RELEASE</version> <relativePath/> <!– lookup parent from repository –> </parent> <groupId>cn.tedu</groupId> <artifactId>rabbitmq-springboot</artifactId> <version>0.0.1-SNAPSHOT</version> <name>rabbitmq-springboot</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> […]

  • ABP CMS module – Advertising

    Time:2020-12-28

    Whether it’s developing an app or a website, you may need an advertising function. For example, we often have a carousel advertisement on the home page, in which multiple images will be shown in a carousel. There is also a news portal, such as the banner advertisement of “banner” which is very common, and JS […]

  • Quartz.net Holes in configuration file

    Time:2020-11-4

    Let’s talk about the configuration here Quartz.netHole in profile 1、quartz_ jobs.xml Configure nodes in Key value Value value ———-When configuring in the value here, you should pay attention not to appear%, &? Wait for special characters, or your job won’t work 2. If your Quartz.net It is independent and deployed to the server. Each update […]

  • Installation and configuration of fastdfs

    Time:2020-8-2

    Environmental preparation Two centos7. X servers are installed with tracker and storage respectively (or only one server can be used to install tracker and storage at the same time) Download fastdfs package:Fastdfs download address: https://github.com/happyfish100/ Libfatscommon: some common function packages separated from fastdfs Fastdfs: fastdfs Ontology Fastdfs nginx module: the association module of fastdfs and […]

  • SharpC: A C Interpreter In C# – 0011

    Time:2020-2-19

    Test program For testing parsing and running using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace SharpCTest { using System.Diagnostics; using System.IO; using SharpC; using SharpC.Grammar; class Program { Private static datetime m \ \ timeconsumption; // time consumption: when the interactive form is involved, the count value is not accurate […]

  • SPI mechanism in Java that must be understood

    Time:2020-1-5

    What is SPI? The full name of SPI is service provider interface, which is a set of APIs provided by java to be implemented or extended by a third party. It can be used to enable framework extension and replace components. The overall mechanism is as follows: In fact, Java SPI is a dynamic loading […]