Thymeleaf+Spring+Maven MacOS

xiaoxiao2021-02-28  113

系统环境:OSX 10.9.5

一、下载Maven

http://maven.apache.org/download.cgi

二、打开命令行,修改环境变量

sudo vi ~/.bash_profile

添加以下内容:

export M3_HOME=/Users/bill/apache-maven-3.5.0 # 此处为maven路径

export PATH=$PATH:$M2_HOME/bin

source ~/.bash_profile # 使修改生效

mvn -v # 查看mvn是否安装成功

三、安装Thymeleaf + Spring3(From GitHub)

https://github.com/thymeleaf/thymeleafexamples-stsm

将项目clone下来,按照Readme的步骤

mvn clean

mvn compile // 这步要下载很多东西,执行很久

最终耗时1小时20分钟左右。

转载请注明原文地址: https://www.6miu.com/read-22870.html

最新回复(0)