mybatis plus第一讲 pom.xml文件

如果你新建一个maven项目,只加了一个pom.xml文件,但是也报错的话,比如报 Multiple annotations found at this line:Missing artifact org.mortbay.jetty:jet等一大长串错误。说明maven升级了,你要双击进入pom.xml后,点击出错的地方进行升级,升级后就不会报错了。本人在此搞了半天才明白。

总的来说是将原来的mybatis的部分去掉,加上mybatis-plus包部分,注意后面的红色部分。

pom文件的内容如下

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.jintingbo.www
mybatisplus
war
0.0.1-SNAPSHOT
mybatisplus Maven Webapp
http://maven.apache.org


4.3.7.RELEASE

1.7.7
1.2.17
1.1.0




org.apache.shiro
shiro-core
1.2.2


org.apache.shiro
shiro-web
1.2.2


org.apache.shiro
shiro-spring
1.2.2


junit
junit
4.11

test



org.springframework
spring-core
${spring.version}


org.springframework
spring-web
${spring.version}


org.springframework
spring-oxm
${spring.version}


org.springframework
spring-tx
${spring.version}


org.springframework
spring-jdbc
${spring.version}


org.springframework
spring-webmvc
${spring.version}


org.springframework
spring-aop
${spring.version}


org.springframework
spring-context-support
${spring.version}


org.springframework
spring-test
${spring.version}



mysql
mysql-connector-java
5.1.30

                

   com.baomidou
   mybatis-plus
   2.3



javax
javaee-api
7.0



commons-dbcp
commons-dbcp
1.2.2



jstl
jstl
1.2




log4j
log4j
${log4j.version}



com.alibaba
fastjson
1.1.41


org.slf4j
slf4j-api
${slf4j.version}


org.slf4j
slf4j-log4j12
${slf4j.version}




org.codehaus.jackson
jackson-mapper-asl
1.9.13



                        com.fasterxml.jackson.core
                        jackson-core
                        2.8.5
                

                
                        com.fasterxml.jackson.core
                        jackson-databind
                        2.8.5
                

                
                        com.fasterxml.jackson.core
                        jackson-annotations
                        2.8.5
                



commons-fileupload
commons-fileupload
1.3.1


commons-io
commons-io
2.4


commons-codec
commons-codec
1.9



mybatisplus



你可能感兴趣的:(mybatis)