Meituan Ermian: How to check whether a username exists among 1 billion users?

Coder Technology Column 2023-11-01 08:50 Published in Zhejiang The following article comes from JAVA Xuyang, author JAVA Xuyang JAVA Xuyang. Rising Sun, I hope I can be like the rising sun, full of hope for everything~~ Java Backend Interviewer Selected Java backend full-stack interview questions, personal website: java-family.cn, database, message queue, architecture… everything you want […]

HttpClient sets the proxy with username and password

The reference codes for get and post methods are as follows: import org.apache.http.HttpEntity; import org.apache.http.HttpHost; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.protocol.HttpClientContext; import org.apache.http.config.Registry; import org.apache.http.config.RegistryBuilder; import org.apache.http.conn.DnsResolver; import org.apache.http.conn.socket.ConnectionSocketFactory; import org.apache.http.conn.socket.PlainConnectionSocketFactory; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; import org.apache.http.message.BasicNameValuePair; import org.apache.http.protocol.HttpContext; import org.apache.http.ssl.SSLContexts; import org.apache.http.util.EntityUtils; […]

Based on Ruoyi-nbcio’s support for flowable process roles, and at the same time modifying the flow user to username, the process startup will be greatly adjusted (2)

For more ruoyi-nbcio functions, please see the demo system gitee source code address Front-end and back-end code: https://gitee.com/nbacheng/ruoyi-nbcio Demonstration address: RuoYi-Nbcio backend management system Continuing from the above article. 1. Obtain the exclusive gateway branch name, branch expression, and next-level task node /** * Get the exclusive gateway branch name, branch expression, and next-level task […]

Based on ruoyi-nbcio’s support for flowable process roles, and at the same time modifying the flow user to username, the process startup will be greatly adjusted (1)

For more ruoyi-nbcio functions, please see the demo system gitee source code address Front-end and back-end code: https://gitee.com/nbacheng/ruoyi-nbcio Demonstration address: RuoYi-Nbcio backend management system The original process based on it does not support role transfer. At the same time, without any processing of the node logic after startup, many problems will be encountered. At the […]

Based on ruoyi-nbcio’s support for flowable process roles, and at the same time modifying the flow user to username, the process startup will be greatly adjusted (3)

For more ruoyi-nbcio functions, please see the demo system gitee source code address Front-end and back-end code: https://gitee.com/nbacheng/ruoyi-nbcio Demonstration address: RuoYi-Nbcio backend management system Continuing from the previous article. 1. Set multiple instances and other related parameters //Set the next node process data for a single user private void setAssigneeFlowNetDto(FlowNextDto flowNextDto,List<SysUser> list,UserTask userTask) { flowNextDto.setVars(ProcessConstants.PROCESS_APPROVAL); […]

MongoDB [Deployment 03] Install mongodb on Windows system and set username and password (no need to install mongosh) and SpringBoot integration error Command failed with error 18

Install mongodb on Windows system and set username and password 1. Download and install 1.1 Download 1.2 Installation 2.Set username and password 2.1 Find the configuration file 2.2 Set username and password 2.2.1 Navicat operation 2.2.2 Modify configuration file 2.3 Verification 3.SpringBoot integration 1. Download and install 1.1 Download The official website download address will […]

Ruoyi framework penetration testing username and password plain text transmission problem

Solution ideas, front-end js encryption, controller layer decryption 1. Front-end encryption Introduce js (jsencrypt.min.js) personal backup js function login() { $.modal.loading($(“#btnSubmit”).data(“loading”)); var username = $(“input[name=’username’]”).val().trim(); var password = $(“input[name=’password’]”).val().trim(); var validateCode = $(“input[name=’validateCode’]”).val(); var rememberMe = $(“input[name=’rememberme’]”).is(‘:checked’); $.ajax({ type: “post”, url: ctx + “login”, data: { “username”: username, “password”: getP(password), “validateCode” : validateCode, “rememberMe”: rememberMe […]

Shiro’s internal process for verifying username and password

Project code comes from: 12-Shiro and Springboot integration_bilibili_bilibili Follow the Shang Silicon Valley WeChat public account and enter the shiro system to return the download link (the Baidu network disk link contains code and handouts): The database table creation statement is in the handout, and you need to add test user data yourself. The project […]