新Spring项目文件结构的解释

huangapple go评论83阅读模式
英文:

Explanation of new Spring project file structure

问题

我是新手对于 Spring,并且在使用他们的REST 教程,我注意到有一堆文件被创建了,供我开始使用。然而,在他们的教程中我没有看到任何关于这些文件具体作用的解释:

  • spring-rest.iml
  • mvnw.cmd
  • mvnw
  • 空的 application.properties 文件

这些文件的作用是什么?在我的 Spring 开发过程中会涉及到对它们的操作吗?

英文:

I am new to Spring and using their REST tutorial, I noticed that a bunch of files were created for me to start with. However I don't see any explanation in their tutorials as to what these files do, specifically:

  • spring-rest.iml
  • mvnw.cmd
  • mvnw
  • empty application.properties file

What do these files do? Will I be touching them in the course of my Spring development?

答案1

得分: 2

  • mvnw:它是一个可执行的 Unix shell 脚本,用来代替完全安装的 Maven。
  • mvnw.cmd:它是上述脚本的批处理版本。
  • mvn:这个隐藏的文件夹包含了 Maven Wrapper Java 库及其属性文件。
  • properties 文件存在于这里,以便轻松地配置应用程序以适应不同的环境。此外,你还可以在其中设置许多 Spring 配置。因此,你会经常用到它!
英文:

> * mvnw: it's an executable Unix shell script used in place of a fully installed Maven
> * mvnw.cmd: it's the Batch version of the above script
> * mvn: the hidden folder that holds the Maven Wrapper Java library and its properties file

  • properties files are there to configure your application per environment easily. Also, you can set up a lot of spring configuration there. You will touch it therefore!

huangapple
  • 本文由 发表于 2020年7月26日 23:32:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/63102184.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定