java SSM和vue整合

时间:2024-11-13 12:28:48
<project xmlns="/POM/4.0.0" xmlns:xsi="http:///2001/XMLSchema-instance" xsi:schemaLocation="/POM/4.0.0 /maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>article</groupId> <artifactId>article</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>article Maven Webapp</name> <url></url> <properties> <>4.2.</> </properties> <dependencies> <!--测试--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <!--spring--> <dependency> <groupId></groupId> <artifactId>spring-core</artifactId> <version>${}</version> </dependency> <!-- jdbc连接池 --> <dependency> <groupId></groupId> <artifactId>spring-jdbc</artifactId> <version>${}</version> </dependency> <!-- 事务管理 --> <dependency> <groupId></groupId> <artifactId>spring-tx</artifactId> <version>${}</version> </dependency> <!--spring测试用--> <dependency> <groupId></groupId> <artifactId>spring-test</artifactId> <version>${}</version> </dependency> <!-- 注解扫描 --> <dependency> <groupId></groupId> <artifactId>spring-context</artifactId> <version>${}</version> </dependency> <!-- MVC --> <dependency> <groupId></groupId> <artifactId>spring-webmvc</artifactId> <version>${}</version> </dependency> <!-- 切面,将日志记录,事务等分离开来 --> <dependency> <groupId></groupId> <artifactId>spring-aop</artifactId> <version>${}</version> </dependency> <!-- mybatis和spring结合用 --> <dependency> <groupId></groupId> <artifactId>mybatis-spring</artifactId> <version>1.2.4</version> </dependency> <!-- mysql连接驱动 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.38</version> </dependency> <!-- 连接数据库 --> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.4</version> </dependency> <!-- mybatis --> <dependency> <groupId></groupId> <artifactId>mybatis</artifactId> <version>3.3.1</version> </dependency> <!-- 转换json用 --> <dependency> <groupId></groupId> <artifactId>fastjson</artifactId> <version>1.2.7</version> </dependency> <!-- jackson转换json用 @ResponseBody默认调用jackson,将java对象转为json --> <dependency> <groupId></groupId> <artifactId>jackson-core</artifactId> <version>2.8.7</version> </dependency> <dependency> <groupId></groupId> <artifactId>jackson-annotations</artifactId> <version>2.8.0</version> </dependency> <dependency> <groupId></groupId> <artifactId>jackson-databind</artifactId> <version>2.8.7</version> </dependency> <!-- 分页插件 --> <dependency> <groupId></groupId> <artifactId>pagehelper</artifactId> <version>5.0.0</version> </dependency> <!-- javaHttp基础包 --> <dependency> <groupId></groupId> <artifactId>-api</artifactId> <version>3.1.0</version> </dependency> <!-- 日志 --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.24</version> </dependency> <!-- slf4j要配合其他日志包运行,slf4j起个管理的作用 --> <dependency> <groupId></groupId> <artifactId>logback-classic</artifactId> <version>1.1.11</version> </dependency> </dependencies> <build> <finalName>article</finalName> <!-- 防止package打包不到XML--> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> <filtering>true</filtering> </resource> </resources> <plugins> <!-- mybatis生成代码插件 --> <plugin> <groupId></groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.5</version> <configuration> <!-- 生成文件的配置 --> <configurationFile>src/main/resources/</configurationFile> <verbose>true</verbose> <overwrite>true</overwrite> </configuration> </plugin> <plugin> <!-- maven插件 --> <groupId></groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> </project>