如何创建一个src / main / resources目录? [英] How to create a src/main/resources directory?

查看:1075
本文介绍了如何创建一个src / main / resources目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所有的班都很好。然后,我想创建 main / resources ,在 main / resources中添加 logback.xml / code>在我的项目中



我从



如何在src文件夹中添加文件夹main / resources?



或者有什么办法添加

解决方案

在eclipse中添加资源文件夹:



  • 点击构建路径



  • 点击配置构建路径



    (或属性 - > Java构建路径



  • 点击源标签





    点击添加文件夹





  • 点击创建新文件夹


    All my classes were working fine. Then I wanted to create main/resources to add logback.xml in main/resources in my project

    I got help from "How to create main/java inside src"

    But after creating the folders I am getting errors in all my classes, and the main folders were converted into packages

    How can I add the folder main/resources in my src folder?

    Or is there any way to add logback.xml in any package in spring MVC?

    解决方案

    To add a resource folder in eclipse:

  • Click on Build Path

  • Click on Configure Build Path

    (or Properties -> Java Build Path)

  • Click on Source Tab

    Click on Add Folder

  • Click on Create new Folder

    这篇关于如何创建一个src / main / resources目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆