第一次写,目前还是作为一名刚入门的学员,加上之前没接触过专业课程学习,导致很多代码跟着老师敲出来但不知道为什么这么写,相当尴尬了,有错误之处还望大神们赐教!写这些记录下来自己学习过程,也算督促自己思考学习,有时间的话,会把自己学过的内容和代码都贴出来的,初来乍到还望多多包涵!谢谢!
使用的是Maven写的项目
我把自己如何建的项目等过程都贴出来的,希望对还没入门的小伙伴们有帮助,毕竟我刚开始挺需要这些帮助的,但可能存在错误,可以及时指出来
新建的项目如果报错,解决方法如下
选中即可
首先配置的pom.xml文件,自动引入的jar包
pom.xml文件
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.auto</groupId>
<artifactId>ajaxdemo01</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<!-- jackson三个包 -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<ve