Add a properties file to IntelliJ's classpath

后端 未结 10 2315
栀梦
栀梦 2020-11-28 19:20

I\'m running a simple Java program from the IntelliJ IDE using the Run->Run menu. It works fine. Now I want to add log4j logging.

I added a resources folder under my

10条回答
  •  忘掉有多难
    2020-11-28 19:45

    Try this:

    • Go to Project Structure.
    • Select your module.
    • Find the folder in the tree on the right and select it.
    • Click the Sources button above that tree (with the blue folder) to make that folder a sources folder.

提交回复
热议问题