How to build maven after importing an java spring project

后端 未结 4 733
孤街浪徒
孤街浪徒 2021-01-29 09:00

Hello i am new to java spring concepts . .so i downloaded a sample spring application and import that into eclipse ..i have read from spring tutorials either i have to install m

4条回答
  •  既然无缘
    2021-01-29 09:49

    I'm new too and for what I can say you can use your pom.xml to add all the dependencies that you need. For example, if you need to add spring context, you can just write its name and version. Maven thinks of how to find and import it.

    The syntax of the example is:

    
        org.springframework
        spring-context
        3-0
    
    

    For every dependence that you need, just write is groupId, artifactID and version, within the dependency tag and maven will think of everything.

    Hence you will have a list of these dependency tags in the pom.xml.

    Moreover, don't forget Maven use its structure ;)

提交回复
热议问题