課程
/后端開發
/Java
/Java高并發秒殺API之業務分析與DAO層
為什么我的maven從倉庫里面檢測出來的版本跟老師視頻里面所寫的版本不一致?而且logback也沒有,這個是什么原因?
2016-07-19
源自:Java高并發秒殺API之業務分析與DAO層 2-2
正在回答
我根據老師的提供的清單建立的依賴沒有問題
<dependencies> ? ?<dependency> ? ? ? ?<groupId>org.slf4j</groupId> ? ? ? ?<artifactId>slf4j-api</artifactId> ? ? ? ?<version>1.7.12</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>ch.qos.logback</groupId> ? ? ? ?<artifactId>logback-core</artifactId> ? ? ? ?<version>1.1.1</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>ch.qos.logback</groupId> ? ? ? ?<artifactId>logback-classic</artifactId> ? ? ? ?<version>1.1.1</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>mysql</groupId> ? ? ? ?<artifactId>mysql-connector-java</artifactId> ? ? ? ?<version>5.1.35</version> ? ? ? ?<scope>runtime</scope> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>c3p0</groupId> ? ? ? ?<artifactId>c3p0</artifactId> ? ? ? ?<version>0.9.1.2</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.mybatis</groupId> ? ? ? ?<artifactId>mybatis</artifactId> ? ? ? ?<version>3.3.0</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.mybatis</groupId> ? ? ? ?<artifactId>mybatis-spring</artifactId> ? ? ? ?<version>1.2.3</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>taglibs</groupId> ? ? ? ?<artifactId>standard</artifactId> ? ? ? ?<version>1.1.2</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>jstl</groupId> ? ? ? ?<artifactId>jstl</artifactId> ? ? ? ?<version>1.2</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>com.fasterxml.jackson.core</groupId> ? ? ? ?<artifactId>jackson-databind</artifactId> ? ? ? ?<version>2.5.4</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>javax.servlet</groupId> ? ? ? ?<artifactId>javax.servlet-api</artifactId> ? ? ? ?<version>3.1.0</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.springframework</groupId> ? ? ? ?<artifactId>spring-core</artifactId> ? ? ? ?<version>4.1.7.RELEASE</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.springframework</groupId> ? ? ? ?<artifactId>spring-beans</artifactId> ? ? ? ?<version>4.1.7.RELEASE</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.springframework</groupId> ? ? ? ?<artifactId>spring-context</artifactId> ? ? ? ?<version>4.1.7.RELEASE</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.springframework</groupId> ? ? ? ?<artifactId>spring-jdbc</artifactId> ? ? ? ?<version>4.1.7.RELEASE</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.springframework</groupId> ? ? ? ?<artifactId>spring-tx</artifactId> ? ? ? ?<version>4.1.7.RELEASE</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.springframework</groupId> ? ? ? ?<artifactId>spring-web</artifactId> ? ? ? ?<version>4.1.7.RELEASE</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.springframework</groupId> ? ? ? ?<artifactId>spring-webmvc</artifactId> ? ? ? ?<version>4.1.7.RELEASE</version> ? ?</dependency> ? ?<dependency> ? ? ? ?<groupId>org.springframework</groupId> ? ? ? ?<artifactId>spring-test</artifactId> ? ? ? ?<version>4.1.7.RELEASE</version> ? ?</dependency></dependencies>
連宏偉HW
舉報
Java實現高并發秒殺API的第一門課,還等什么,趕快來加入吧
1 回答如何解決,改依賴的也依賴了
1 回答maven依賴報錯
3 回答maven的創建項目和依賴總是出錯
1 回答是只要依賴logback-classic就會依賴slf4j和logback-core嘛
1 回答為什么不導入spring aop相關的依賴?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-07-20
我根據老師的提供的清單建立的依賴沒有問題
<dependencies>
? ?<dependency>
? ? ? ?<groupId>org.slf4j</groupId>
? ? ? ?<artifactId>slf4j-api</artifactId>
? ? ? ?<version>1.7.12</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>ch.qos.logback</groupId>
? ? ? ?<artifactId>logback-core</artifactId>
? ? ? ?<version>1.1.1</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>ch.qos.logback</groupId>
? ? ? ?<artifactId>logback-classic</artifactId>
? ? ? ?<version>1.1.1</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>mysql</groupId>
? ? ? ?<artifactId>mysql-connector-java</artifactId>
? ? ? ?<version>5.1.35</version>
? ? ? ?<scope>runtime</scope>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>c3p0</groupId>
? ? ? ?<artifactId>c3p0</artifactId>
? ? ? ?<version>0.9.1.2</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.mybatis</groupId>
? ? ? ?<artifactId>mybatis</artifactId>
? ? ? ?<version>3.3.0</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.mybatis</groupId>
? ? ? ?<artifactId>mybatis-spring</artifactId>
? ? ? ?<version>1.2.3</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>taglibs</groupId>
? ? ? ?<artifactId>standard</artifactId>
? ? ? ?<version>1.1.2</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>jstl</groupId>
? ? ? ?<artifactId>jstl</artifactId>
? ? ? ?<version>1.2</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>com.fasterxml.jackson.core</groupId>
? ? ? ?<artifactId>jackson-databind</artifactId>
? ? ? ?<version>2.5.4</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>javax.servlet</groupId>
? ? ? ?<artifactId>javax.servlet-api</artifactId>
? ? ? ?<version>3.1.0</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.springframework</groupId>
? ? ? ?<artifactId>spring-core</artifactId>
? ? ? ?<version>4.1.7.RELEASE</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.springframework</groupId>
? ? ? ?<artifactId>spring-beans</artifactId>
? ? ? ?<version>4.1.7.RELEASE</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.springframework</groupId>
? ? ? ?<artifactId>spring-context</artifactId>
? ? ? ?<version>4.1.7.RELEASE</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.springframework</groupId>
? ? ? ?<artifactId>spring-jdbc</artifactId>
? ? ? ?<version>4.1.7.RELEASE</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.springframework</groupId>
? ? ? ?<artifactId>spring-tx</artifactId>
? ? ? ?<version>4.1.7.RELEASE</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.springframework</groupId>
? ? ? ?<artifactId>spring-web</artifactId>
? ? ? ?<version>4.1.7.RELEASE</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.springframework</groupId>
? ? ? ?<artifactId>spring-webmvc</artifactId>
? ? ? ?<version>4.1.7.RELEASE</version>
? ?</dependency>
? ?<dependency>
? ? ? ?<groupId>org.springframework</groupId>
? ? ? ?<artifactId>spring-test</artifactId>
? ? ? ?<version>4.1.7.RELEASE</version>
? ?</dependency>
</dependencies>