-
java入门之如何使用maven开启一个webapp项目
1、使用maven创建好一个webapp项目
2、pom.xml:
第一步:修改版本
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <spring.version>5.0.2.RELEASE</spring.version> </properties>
第二步:引入插件
<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <port>8099</port> </configuration> </plugin> <!--注意这里也需要引入jdk1.8--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <target>1.8</target> <source>1.8</source> <encoding>UTF-8</encoding> </configuration> </plugin>
3:设置configurations
tomcat7:run
4:点击运行就可以啦
在这过程中可能遇到
找不到源,那么需要引入spring的相关依赖
栏目列表
最新更新
python处理sqlserver数据库的返回数据
Python-判断回文
python线程信号量semaphore(33)
60%的人不懂Python进程Process,你懂吗?
python-网络编程
python连接sqlserver工具类
Python爬虫技术:爬虫时如何知道是否代理
selenium设置user-agent以及对于是否是浏览器
MAC自带Apache配置python3
【Python必学】Python爬虫反爬策略你肯定不
.Net Standard(.Net Core)实现获取配置信息
Linux PXE + Kickstart 自动装机
Shell 编程 基础
Shell 编程 条件语句
CentOS8-网卡配置及详解
Linux中LVM逻辑卷管理
1.数码相框-相框框架分析(1)
Ubuntu armhf 版本国内源
Linux中raid磁盘阵列
搭建简易网站
mysql 安装了最新版本8.x版本后的报错:
Mysql空间数据&空间索引(spatial)
如何远程连接SQL Server数据库的图文教程
复制SqlServer数据库的方法
搜索sql语句
sql中返回参数的值
sql中生成查询的模糊匹配字符串
数据定义功能
数据操作功能
将Session值储存于SQL Server中