在哪里创建文件夹? [英] Where to create the folder?

查看:101
本文介绍了在哪里创建文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Spring Boot应用程序并提供一些数据库支持。 我要遵循的教程要求我在资源文件夹内创建一个 applications.properties 文件。

I am creating a Spring Boot application and providing some database support. The tutorial that I am following asks me to create a applications.properties file inside the resources folder.

除了我根本没有任何 resources 文件夹之外,这都是花花公子。是因为在教程遵循IntelliJ的同时我正在使用Eclipse吗?我不这么认为。我的问题是-我在哪里创建此资源文件夹?我将在其中插入具有数据库连接信息的 applications.properties 文件,因此 pom.xml 我猜。哦,我正在使用 Maven 进行构建(以防万一)。

This is all dandy, except that I do not have any resources folder at all. Is it because I am using Eclipse, while the tutorial follows IntelliJ? I don't think so. My question is - where do I create this resources folder? I would be inserting the applications.properties file with database connectivity info in it, so this file should be accessible to pom.xml I guess. Oh, and I am using Maven for building (in case it makes a difference).

当前,我的目录结构如下:

Currently, my directory structure is as follows:

我的目录

推荐答案

假设您尝试从头开始构建一个Spring Boot应用程序。
当srping提供弹簧引导锅炉板时,您真的不需要从头开始构建一个,它非常方便并且易于使用。
https://start.spring.io/

Assuming that ur trying to build one spring boot application from scratch. You dont really need to do build one from scratch when srping provides spring boot boiler plate which is very handy and easy to use. https://start.spring.io/

您在启动Spring Boot项目时需要了解的几件事。
1.application.properties文件包含所有与配置相关的日期。想知道如何从下面的代码的java类读取此属性会有所帮助

Few things you need to know when ur starting a spring boot project. 1.application.properties file contains all the configuration related date.Wondering how to read this property from java class below code can help

Java class
@Configuration
public class JMSSQSConfig {
@Value("${queue.endpoint}")
private String endpoint;

application.properties file
#AWS Endpoint
queue.endpoint=https://sqs.us-west-2.amazonaws.com/

现在,春季启动会从application.properties文件中动态读取该值。

Now spring boot reads this value dynamically from application.properties file.

上面的链接还为您提供了构建项目gradle / maveen的方式。

Above link also provides you the way u want to build ur project gradle/maveen.

上面的锅炉板也具有与之相关的测试框架。.

Above boiler plate has testing frame work assosiated with it too.. It just makes work easy.

检查此链接
https://spring.io/guides/gs/spring-boot/

这篇关于在哪里创建文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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