Tag:Solve the problem

  • Kubernetes cluster cannot execute kubectl top node after installing Kube Prometheus


    Background: Kubernetes 1.20.5 installing Prometheus opratorWell, my cluster is 1.21.3, although it isExecute kubectl top nodes as follows: Problem solving process: There are a lot of opinions on the Internet, but none of them is applicable to me. Read the logs of all pods under monitoring, and then find the logs in the Prometheus adapter […]

  • Idea uses JPA custom query and reports an error of can’t resolve symbol ‘type‘


    Idea uses JPA custom query and reports an error of can’t resolve symbol ‘type‘ https://blog.csdn.net/qq_45804925/article/details/114088506 I encountered a problem when doing project design today. Please make a simple record. Problems found:As shown in the above figure, useJPAThe annotation @query of defines the query from itself, and the error can’t resolve symbol ‘type’ is reported. Solve […]

  • Solve the problem that mybatis universal mapper cannot echo using UUID as the primary key


    Solve the problem that the generic mapperuuid cannot be echoed First of all, I would like to recommend a very good mybatis plug-in website http://mybatis.tk/ , you who use mbatis can go to this website to see the mybatis plug-in.I encountered a problem when I built the springboot+mybatis+mybatisgenerator framework myself. I built the demo in […]

  • Low level teams should not use typescript


    type R = | (string extends null | undefined ? never : string) | (string extends null | undefined ? never : string) | (string[] extends null | undefined ? never : string[]) | (null extends null | undefined ? never : null) | (undefined extends null | undefined ? never : undefined); This type […]

  • Springboot get request receives date type parameter


    The front end directly passes the time. If the back end directly receives parameters without processing, exceptions will occur. Use the annotation @datetimeformat to solve the problem problem @RequestMapping(value=”/fetch” , method=RequestMethod.GET) public @ResponseBody String fetchResult(@RequestParam(“from”) Date fromDate) { //Content goes here } Treatment method @RequestMapping(value=”/fetch” , method=RequestMethod.GET) public @ResponseBody String fetchResult(@RequestParam(“from”) @DateTimeFormat(pattern=”yyyy-MM-dd”) Date fromDate) { […]

  • Solve the problem of huge CPU consumption when opening idea


    My idea version is 2021.2.3, and the actual measurement solves the problem Before changing the configuration: After modification: The method is as follows: Then replace the configuration parameters inside: -Xms4096m -Xmx4096m -Xmn3072m -XX:MetaspaceSize=1024m -XX:MaxMetaspaceSize=1024m -XX:+AlwaysPreTouch -XX:InitialCodeCacheSize=1200m -XX:ReservedCodeCacheSize=1200m -XX:+UseCompressedOops -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=4 -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -XX:TieredStopAtLevel=1 -XX:MaxInlineLevel=3 -XX:Tier4MinInvocationThreshold=100000 -XX:Tier4InvocationThreshold=110000 -XX:Tier4CompileThreshold=120000 -Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes=”” -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf […]

  • Client cannot authenticate XXX:[TOKEN, KERBEROS]


    Caused by: org.apache.hadoop.security.AccessControlException: Client cannot authenticate xxx:[TOKEN, KERBEROS] The security authentication failed. The causes are as follows:1. Check whether the Kerberos address can be connected normally //IP of KDC System.setProperty(“java.security.krb5.kdc”, “”); // realm System.setProperty(“java.security.krb5.realm”, “XXX”); 2. The configuration file could not be read successfully UserGroupInformation. Loginuserfromkeytab (user name, path of KeyTab file); It is recommended […]

  • Remember an online MySQL deadlock


    problem: yesterday, an error was reported on the line, which made a function unable to execute. Looking up the log found that it was a MySQL deadlock problem. Analyze problems: in fact, the biggest difficulty in solving the problem is to analyze the problem and find out where the problem occurs. This process takes the […]

  • C# crawler – release selenium chromedriver from memory Exe ultimate kill


    background Previously, when I was a crawler, I encountered the problem that the memory could not be released. I released selenium chromedriver from the memory exe。 Later, I use the following methods: public override void DoJob(IJobExecutionConxt context, ILifetimeScope scope, string[] args) { Console. Writeline (NAMEOF (loginreplies1688job) + “start ————————–“); ChromeOptions options = null; IWebDriver driver […]

  • Don’t think that a good bug is a good programmer. In fact, it accounts for less than 15%!


        Recently, I met with a technical friend who has been engaged in architecture for many years, talked about some experiences of interviewing programmers recently, and talked about the topic of “how to judge the level of programmers”. I felt it was valuable, so I spent some time sorting and sharing it with you. […]

  • Pecel install swoole reports an error SSL H can’t find a solution


    We’re usinghomebrewInstalledPHPAfter, if usedpeclAn error will be reported when installing swooleopenssl/ssl.hcan’t find.Don’t be nervous at this time. Follow these two steps to solve the problem brew info openssl If you need to have openssl first in your PATH run: echo ‘export PATH=”/usr/local/opt/openssl/bin:$PATH”‘ >> ~/.zshrc For compilers to find openssl you may need to set: export […]

  • The bootstrap table fixes the rightmost column, repeats and falls


    As shown in the figure above, you can’t solve the problem if you keep searching.Therefore, I looked at the source code, looked at other people’s examples, and finally found a solution;Just add some CSS style. So in case everyone encounters the same problem, record it. .fixed-columns, .fixed-columns-right { position: absolute; top: 0; height: 100%; min-height: […]