Usage of date format in angular4

Processing date in.ts file The format of the date will have different display outputs in different methods. dateTime: Date; this.dataTime = new Date(); // Get the current date // Output: Fri Dec 08 2017 00:33:01 GMT+0800 (China Standard Time) Sometimes we need some string type output in other formats. You can see all the tostring methods ...

Posted by Jr0x on Thu, 02 Jul 2020 08:53:46 -0700

Node.jsConnect mongodb

If you don't know this before reading this article, you won't simply use mongodb. Stamp here 1. Install mongodb dependency, here we install v2.2.33, if we've encountered it beforeDb.collectionIs not function is really just a mongodb library version issue (desktop creation of fml files) My project file name is fml C:\Users\admin\Desktop\fml> ...

Posted by fredi_bieging on Thu, 02 Jul 2020 07:53:41 -0700

Necessary knowledge points of MySQL development log file

Necessary knowledge points of MySQL log file development Reference source: juejin.im/post/5b7c0aabf265da438415b9eb preface Log files record all kinds of activities that affect MySQL database. Common log files in MySQL database include error log, binary log, slow query log and query log. They are i ...

Posted by Yucky on Tue, 30 Jun 2020 00:40:28 -0700

Record website visits

1. Create a table in the database to store the hits 2. Create a listener (MyWebListener) to implement the ServletContextListener interface. When the project is started, the hits are obtained through the dao layer (ContextMapper) and stored in the ServletContext. 3. Increase the number of visits when vi ...

Posted by tzikis on Tue, 30 Jun 2020 00:03:17 -0700

Evaluation of million level data migration scheme

preface Recently, when the company used ABP to reconstruct the old project, the database was also switched from SQL SERVER to MySql. Tucao, the products used before make complaints about Windows Server 2008, SqlServer 2008R2,.Net Framework 4.5, and now embrace.net core. Back to the point. At present, there are 10w + and 100w + data in a single ...

Posted by cdwhalley.com on Mon, 29 Jun 2020 20:15:36 -0700

Why do I think Flutter is the future of mobile application development

Guide to Lao Meng: This is a boutique article translated by Lao Meng, which has a total of 3.6K of praise.Join the Lao Meng Flutter Exchange Group (wx:laomengit) and make great articles no mistake. Original address: https://medium.com/free-code-camp/why-i-think-flutter-is-the-future-of-mobile-app-development-768332b73c0d A few years ago, I ...

Posted by fighnight on Mon, 29 Jun 2020 17:15:02 -0700

jwt Logon Check Carry token

jwt login registration jwt concept Token does not need to be stored in the database.Just generate the key behind the scenes, then put the token in the request body or header when the client sends the request. When the client receives the token, it is stored in the local store or cookie. Note that sensitive information cannot be stored in the to ...

Posted by phat_hip_prog on Mon, 29 Jun 2020 09:12:56 -0700

@What does the Transaction annotation not work?

Take a look at the simplest example of CGLIB, and feel how AOP is achieved? /** * Created with vernon-test * Description: * User: chenyuan * Date: 16/4/25 * Time: 9:25 am */ public class Target { public String execute() { String message = "----------test()----------"; System.out.println(message); return message ...

Posted by stylefrog on Mon, 29 Jun 2020 03:15:21 -0700

ES backup recovery

@[toc] 1, ES backup 1.1 basic concepts    Elasticsearch replica provides high reliability; partial node loss can be tolerated without service interruption. However, replicas do not provide protection against catastrophic failures. In this case, it is necessary to back up for processing.   backup Elasticsearch clusters can us ...

Posted by Naez on Mon, 29 Jun 2020 00:38:26 -0700

nodejs crawler project

The news data of several websites have been crawled before. Now we need to organize and display these data. The specific requirements are as follows The first step is to install the dependency package in npm install under the final project folder Here, I met a problem during the installation process. Th ...

Posted by moonman89 on Sun, 28 Jun 2020 20:05:01 -0700