vs code configuration.json file introduces makefile file file for multifile compilation

Background: When writing c++ using VS code before, you didn't use multiple files, so you didn't configure launch.jason and task.jason configurations too much, but you don't support multi-file compilation and debugging. Note: Makefile is used mainly for larger projects involving the compilation of multiple files.If a header fi ...

Posted on Sat, 28 Mar 2020 09:53:20 -0700 by Wolfsoap

I crawled a picture website with java crawler

I crawled a picture website with java crawler I want to set up a website recently, and I don't want to do technology blog, because it's enough like blog Park and CSDN. The usual problem is that these records are enough. What kind of website is fun? It's not bad to see a picture website. There are a lot of pictures in it (of course, there are xx ...

Posted on Fri, 27 Mar 2020 09:51:51 -0700 by aubeasty

Spring handles request and response related annotations

@Controller By default, the content of the string.html page in the templates directory is returned. Add @ ResponseBody annotation to the method to return the content of JSON, XML or custom mediaType @RestController Returning the content directly will automatically convert the object entity to JSON format, and the view parser, InternalResourceVi ...

Posted on Fri, 27 Mar 2020 07:26:11 -0700 by hoodlumpr

thinkphp+jquery to achieve two-level comment reply effect

This is not an infinite level comment, but only two levels. It's easy to implement. The parent id of all comments is the id of the corresponding first level comment. When adding a comment, add it under the corresponding comment, and put the latest comment in the front with prepend()     Database design (I don't really use the database here. In ...

Posted on Wed, 25 Mar 2020 07:42:15 -0700 by shadownet

thinkphp+jquery to achieve two-level comment reply effect

This is not an infinite level comment, but only two levels. It's easy to implement. The parent id of all comments is the id of the corresponding first level comment. When adding a comment, add it under the corresponding comment, and put the latest comment in the front with prepend()     Database design (I don't really use the database here. In ...

Posted on Wed, 25 Mar 2020 07:43:17 -0700 by prometheuzz

Integrated NGX translate for ionic3 learning

Integrating NGX translate Official connection github: https://github.com/ngx-translate/core Step 1: install npm install @ngx-translate/core --save npm install @ngx-translate/http-loader --save Step 2: To import the TranslateModule, first import the TranslateModule and add the following code under app.module.ts ...

Posted on Mon, 23 Mar 2020 09:23:44 -0700 by rhiza

java obtains the QR code of wechat applet and returns the picture

1. Get access_token. I won't talk about how to get it! See this article: https://blog.csdn.net/qq_26365837/article/details/89969237 /** * Get the QR code of wechat * @return * @return Object * @author tyg * @date 2020 5:35:07 PM, February 6, 2015 */ @RequestMapping(value = "/wechat/getWechatqr", method = RequestMethod.GET) ...

Posted on Mon, 23 Mar 2020 09:04:58 -0700 by akjackson1

[Spring Security + OAuth2 + JWT start to practice] 25. JWT replace default token

brief introduction JWT is a stateless way. User's data can be directly parsed in token to get user's data. There are two problems in stateless: 1. Lease renewal, 2. Exit. There is no good solution to these two problems. If it is a common web project, JWT is not recommended Replace the default token with JWT (the default token is generated b ...

Posted on Sun, 22 Mar 2020 09:58:59 -0700 by pmt2k

EasyUI tree table displaying Json data

Use the TreeGrid component of EasyUI to format and display the Json data. First, read in the Json file, turn it into a Map object, recurse each Map, and determine whether its value is the basic type or Map. If the base type, the attribute node. If Map is an object, it needs to be traversed again. 1.Map resolves Tree objects Tree object public ...

Posted on Sun, 22 Mar 2020 08:34:46 -0700 by salim

search- elasticsearch scala terminal: elastic4s

The previous article said that elastic search itself is a complete background system, and its operation is carried out through terminal api. elasticsearch itself provides APIs for a variety of programming languages, including java's esjava. elastic4s is a scala api based on esjava. First, let's look at the construction process of ElasticClient ...

Posted on Sat, 21 Mar 2020 07:37:19 -0700 by maskme