Tag:A lowercase letter

  • Gateway error allowedorigins cannot contain the special


    java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value “*” since that cannot be set on the “Access-Control-Allow-Origin” response header. To allow credentials to a set of origins, list them explicitly or consider using “allowedOriginPatterns” instead. at org.springframework.web.cors.CorsConfiguration.validateAllowCredentials(CorsConfiguration.java:460) Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Error has been observed at the following site(s): |_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain][from […]

  • Application of rust beauty iterator in algorithm


    preface In this paper, we will introduce several methods related to iterators in rust language from a simple algorithm problem to help you understand chars, all, try_ fold,enumerate,try_ for_ each,char_ Use of indices. ​ The title is as follows We define that capitalized words are correct when:quoteAll letters are capitalized, such as “USA”.All letters in […]

  • [go] return JSON data under golang http


    The demand returns the structure encoded in JSON format, and the content type needs to be returned Return different response codes   The definition of structure, because the exportable structure must be in uppercase. If you want to be in lowercase, you have to add this alias type JsonResult struct{ Code int `json:”code”` Msg string […]

  • MySQL case insensitive setting


    preface: Generally, in the database usage specification, we will see that the database name and table name are all in lowercase English. Have you ever thought about why lowercase is recommended? Should library table names be case sensitive? With these questions, let’s take a look at this article. 1. A parameter that determines whether case […]

  • Learn a Linux command every day (77): DD


    Command introduction The DD command is used to copy files and convert and format the contents of the original files Syntax format dd [OPTIONS]… Option description If = filename # specifies the source file. Of = file name # specifies the destination file. IBS = bytes # specifies a block size of bytes OBS = bytes […]

  • Vs code how to set case conversion shortcuts


    In general, the shortcut keys are as follows: Convert to uppercase: Ctrl + Shift + U Convert to lowercase: Ctrl + Shift + L If not, it needs to be set separately. The steps are as follows: 1. Click [file] – [preferences] – [keyboard shortcut] menu: 2. Enter “convert to uppercase” and the search results […]

  • Python naming conventions


    variable Generally all lowercase _ Underline segmentation Private variable_ Begin with an underscore Name without type information num_ list name = ‘jeck’ student_name = ‘cc’ for _i in range(10): pass constant uppercase _ Underline segmentation MAX_COUNT = 10 function All lowercase _ Underline segmentation Private function_ Begin with an underscore def call(): pass def call_name(): […]

  • How does JS judge Android or IOS?


    Put the following code directly into the web page <script> //Get the useragent of the browser and convert it to lowercase var ua = navigator.userAgent.toLowerCase(); //Judge whether it is an Apple phone. If yes, it is true var isIos = (ua.indexOf(‘iphone’) != -1) || (ua.indexOf(‘ipad’) != -1); if(isIos){ console. Log (‘compatible with Apple phone ‘); […]

  • Java learning notes (continuously updated)


    Some commonly used Summary of common statements Scanner in = new Scanner (System.in); // Create a new input method MOOC notes Variable declaration int num; int a, count = 10, b; double result; Numeric type conversion If a is of type float, use (int) a to convert it to an integer. judge floating-point comparisons In […]

  • More than 60 tools are commonly used in Vue


    1. Mailbox export const isEmail = (s) => { return /^([a-zA-Z0-9_-])[email protected]([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(s) } 2. Mobile phone number export const isMobile = (s) => { return /^1[0-9]{10}$/.test(s) } 3. Telephone number export const isPhone = (s) => { return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(s) } 4. URL address export const isURL = (s) => { return /^http[s]?:\/\/.*/.test(s) } 5. String export […]

  • Issue 32: index design (detailed specification for index design)


    Through the previous introduction and examples about index design, I believe you have some fragmentary understanding of index design. This article will make a summary and give a detailed specification of index design. Index naming conventions: Single valued index, IDX is recommended_ All lowercase letters begin with. For example: alter table t1 add key idx_ […]

  • String processing of IOS: intercepting string, matching string, separating string, case conversion


    1. Intercept string NSString *string [email protected]”123456d890″; NSString *str1 = [string substringToIndex:5];// Intercept the string before subscript 5 Nslog (@ “intercepted value:% @”, STR1); NSString *str2 = [string substringFromIndex:3];// Truncate the string after subscript 3 Nslog (@ “intercepted value:% @”, STR2); 2. Matching string Nsstring * string = @ “SD is sfsadfsdf”; NSRange range = [string […]