Solve the null problem with getResourceAsStream in IntelliJ IDEA

To solve this problem is very simple: windows version press the shortcut key alt + shift + ctrl + s mac:command + ; Enter the module configuration, select the module you are using, click sources, create a new folder, the name is random, then click The above icon, that is, resources, your folder will be discolored, and then put the resource file into this folder, you can get the input stream of the file through classloader.getgetResourceAsStream ("file name").

 

Intelligent Recommendation

Intellij idea to solve the garbage problem console Chinese

Intellij idea to solve the garbage problem console Chinese First, modify configuration files intellij idea Find intellij idea installation directory, bin folder below idea64.exe.vmoptions and idea.exe...

Solve the Chinese garbled problem of IntelliJ IDEA console

If log4j sets the output encoding to utf-8, but the characters printed to the console are garbled in Chinese, you can try the first solution. After reading a lot of online, finally solved. Summary As ...

Solve the problem of garbled output in the IntelliJ IDEA console

1. Find the idea.exe.vmoptions and idea64.exe.vmoptions files under the bin where the Intellij idea directory is installed. My installation directory is D:\IntelliJ IDEA\IntelliJ IDEA 15.0.2\bin 2. Mo...

Solve the problem of configuring jetty8.1 in intellij idea

Let me describe how I operate it, please help me look at it The first post will not use the format directly on the picture Go directly to jetty8.1 under the official website (because the program I use...

Solve the problem of overlapping Chinese characters in IntelliJ IDEA

Before solving After solving Solution: settings>Editor>Font, select the appropriate font. Cancel italic method: settings>Editor>Color Scheme >Language Defaults, cancel the ltalic italic...

More Recommendation

Completely solve the problem of Intellij IDEA Chinese garbled

Regarding JAVA IDE development tools, the Eclipse series and Intelli IDEA are the main choices of most companies. From the developer's perspective, Intellij IDEA seems to be more popular than the Ecli...

Solve Mac IntelliJ IDEA freeze problem

Hello everyone, I’m posting a blog again. I want to write a blog and record it when I encounter practical tips. Not much nonsense, let me introduce the main use of this blog! ! Machine configura...

Completely solve the problem of Chinese garbled in Intellij IDEA

Regarding JAVA IDE development tools, the Eclipse series and Intelli IDEA are the main choices of most companies. From the developer's perspective, Intellij IDEA seems to be more popular than the Ecli...

Solve the problem that Intellij IDEA configures Maven slowly

Solve the problem that Intellij IDEA configures Maven slowly Reasons for slow configuration: By default, Maven downloads dependent files from foreign warehouses. The download speed is slow at the firs...

IntelliJ IDEA can't find the plug-in problem to solve

problem Sometimes I see useful plug-ins introduced on the Internet. When I search for the plug-in name when opening idea File-setting-Plugins (note the space format of the plug-in name and it is in th...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top