idea
提取解压
到/bin下,sh idea.sh终端打开
工程创建
1、选择new project
2、点击maven,勾选create from archetype,选择maven-archetype-webapp
3、为GroupID填写包名如com.lanou,ArtifactID填写项目名
4、配置maven地址,和usersetting地址,用阿里仓库
5、创项目,先去先写好文件夹,鼠标右键Mark Directory as设置Sources和resources
阿里仓库
去/opt/apache-maven-3.6.3/conf的settings.xml配置
vim settings.xml
6、在resources文件夹创建spring config
new>XML Configuration File>Spring Config
xmlns:context="http://www.springframework.org/schema/context"
在xsi:schemaLocation=
加入:
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
xmlns:mvc="http://www.springframework.org/schema/mvc"
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd