Category Archives: How to Fix

Idea has installed markdown, open it or will not show preview effect

Idea has Markdown installed and will not show the preview effect
why
This is because the.md file at the end of the Markdown plugin was opened using Text, so idea is now opened using Text.
The solution
In the file - & gt; The Settings - & gt; The Editor - & gt; File Types under Recongnized the File Types found under Markdown , then click on the Registered Patterns bar to the right of the plus sign, fill in the * md save. The .mdle has been registered in Text.

Depending on the custom component jar package, unable to read meta data for class appears after startup


java.lang.IllegalStateException: Unable to read meta-data for class com.dyt.controller.TestController1
	at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationMetadata(AutoConfigurationSorter.java:233) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getOrder(AutoConfigurationSorter.java:204) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.access$000(AutoConfigurationSorter.java:150) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.autoconfigure.AutoConfigurationSorter.lambda$getInPriorityOrder$0(AutoConfigurationSorter.java:62) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at java.util.TimSort.countRunAndMakeAscending(Unknown Source) ~[na:1.8.0_201]
	at java.util.TimSort.sort(Unknown Source) ~[na:1.8.0_201]
	at java.util.Arrays.sort(Unknown Source) ~[na:1.8.0_201]
	at java.util.ArrayList.sort(Unknown Source) ~[na:1.8.0_201]
	at org.springframework.boot.autoconfigure.AutoConfigurationSorter.getInPriorityOrder(AutoConfigurationSorter.java:61) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector$AutoConfigurationGroup.sortAutoConfigurations(AutoConfigurationImportSelector.java:430) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector$AutoConfigurationGroup.selectImports(AutoConfigurationImportSelector.java:415) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGrouping.getImports(ConfigurationClassParser.java:872) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:798) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:770) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:185) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:315) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at com.dyt.MybatisApplication.main(MybatisApplication.java:12) [classes/:na]
Caused by: java.io.FileNotFoundException: class path resource [com/dyt/controller/TestController1.class] cannot be opened because it does not exist
	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180) ~[spring-core-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:51) ~[spring-core-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) ~[spring-core-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:86) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:73) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81) ~[spring-core-5.1.14.RELEASE.jar:5.1.14.RELEASE]
	at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationMetadata(AutoConfigurationSorter.java:229) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
	... 27 common frames omitted

/ meta-inf /spring.factories

br br br /classes




Unable to read meta data for class

From: http://www.infoq.live/links, original author: Chen, wei

    problem description

Unable to read meta-data for class
Unable to read meta-data for class
Unable to read meta-data for class
Unable to read meta-data for class
Locate

    analysis custom starter in spring. The factories configure multiple configuration, need each other to interval \

    org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
    cn.xxx.xxx.secret.SecretAutoConfiguration,
    cn.xxx.xxx.secret.modules.cors.WebMvcConfiguration
    

    Correct configuration:

    org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
    cn.xxx.xxx.secret.SecretAutoConfiguration,\
    cn.xxx.xxx.secret.modules.cors.WebMvcConfiguration
    

Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B

UnicodeDecodeError: ‘UTF-8’ codec can’t decode byte 0xD3 in position 238: invalid continuation B
 
directory
To solve the problem
solution
The solution


 
 
 
To solve the problem
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation byte
 
 
solution
Unicode decoding error: “UTF-8” codec cannot decode byte 0xD3 in position 238: Continue byte invalid
 
 
The solution
Open the file in Python’s IDE, and add a line of code at the top!
# -*- coding: utf-8 -*-
or
# coding: utf8
 
 
 
 

Mybatis exception error setting driver on unpoleddatasource. Cause: java.lang.ClassNotFoundException :

Connector jar has been imported, or a Cause: Java, SQL. SQLException: Error setting driver on UnpooledDataSource. Cause: Java. Lang. ClassNotFoundException: always find a class: com. Mysql.. JDBC driver

When you open the properties file, you find an extra space (underlined in red), so make sure you don’t enter extra Spaces when writing the properties file.

Remove spaces after characters in Excel cells

    Code value (obtained by the CODE function) In the range 1-255, there are 148 invisible characters 1-15,28-32,127-254. Clean (A1) can be used to remove characters with code value less than or equal to 31 (including visible characters 16-27) and characters with code value equal to 128. Substitute (A1,CHAR(32),””) function can remove invisible characters whose code value is equal to 32 and 129-254, and TRIM function can remove such characters at both ends of the string. Invisible characters with code value equal to 127 can only be removed using the SUBSTITUTE(A1,CHAR(127),””) function. Using both functions together, you can basically remove all invisible characters with code values less than 255 (including visible characters with code values 16-27):
    SUBSTITUTE(SUBSTITUTE(CLEAN(A1),CHAR(32),””),CHAR(127),””)