Tag Archives: idea

[Solved] java.lang.noclassdeffounderror when idea runs Flink: org/Apache/flick/API/common/executionconfig

Solution:
change provided to compile ,for example:

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-java</artifactId>
			<version>${flink.version}</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-streaming-java_${scala.binary.version}</artifactId>
			<version>${flink.version}</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-clients_${scala.binary.version}</artifactId>
			<version>${flink.version}</version>
			<scope>compile</scope>
		</dependency>

Click POM. XML refresh in idea to refresh

Port out of range: – 1 for Tomcat startup in idea

Port out of range: – 1 for Tomcat startup in idea

The reason for this may be that the port number of your configuration file is – 1

how to solve it
first, let’s find the configuration file in conf under your Tomcat installation path

Mine is here

Open with Notepad

Change the port number to another number at this position. Make it larger. Here I change it to 1001

OK, it’s normal

When idea generates a spring boot project, error: read timed out appears

When using idea to generate spring boot projects, the following occurs: error: read timed out ,

The solution is as follows:

    click file in the upper right corner of idea and select settings in the list. Click settings
    to open the settings box, and select appearance & amp; on the left; Behavior –> System Settings –> HTTP proxy, select auto detect proxy settings on the right, click Check connection below, and fill in in the pop-up box https://start.spring.io , click OK
    , and the connection successful information will be displayed in the pop-up box, and it will succeed.

Idea SpringBoot:Error creating bean with name ‘XXXXController‘

Problem Description:

Red when starter starts springboot:

  Error creating bean with name ‘indexController’

Error creating bean named ‘indexcontroller’

Error in bean of ‘sqlsessionfactory’: failed to instantiate bean through factory method

Problem solving:

According to the error report, it can be seen that the mapper layer is not injected and the mapper instance cannot be found. First, check the springboot core configuration file application.yml. In the mybatis configuration structure, the bean is not configured in the custom scan package type aliases package. Just reconfigure it (the package name depends on the individual)

com.crm.bean;

There is no error when compiling and packaging the IDEA code, but the code displays an error

Uploading… Re-upload cancel

The figure is casually found on the Internet. It shows that the code is compiled successfully, but the packaging fails. When maven reimprot and mavn clean and idea invalidate cache are useless, it is recommended to empty the. Idea and. IML files in the workspace folder
the reason is incomplete or incorrect package guide information, which is caused by the disordered configuration information of the workspace of the idea itself.

 . iml Folder

Idea means module configuration information. Information of module
IML is the project configuration file of IntelliJ idea, which contains some configuration information of the current project Idea stores the configuration information of the project, including history, version control information, etc.

 .idea Folder

Idea stores the configuration information of the project, including history, version control information, etc.

Idea starts Tomcat console with garbled code but no error

Problem display

resolvent

1. Find the Tomcat installation directory  

  2. Open the logging.properties file from the conf folder
find the line java.util.logging.consolehandler.encoding = UTF-8 and change it to java.util.logging.consolehandler.encoding = GBK
that is, change the console code from UTF-8 to GBK

  Successful solution, give a praise