Skip to content

Commit

Permalink
修正一些代码
Browse files Browse the repository at this point in the history
  • Loading branch information
nnngu committed Jan 28, 2018
1 parent 8a6846f commit 1a19c41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/nnngu/dto/Exposer.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ public String toString() {
", 当前时间=" + now +
", 开始时间=" + start +
", 结束=" + end +
'}';
"}\n";
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/nnngu/service/SeckillServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private String getMd5(long seckillId) {
}

/**
* 执行秒杀操作,失败的,失败我们就抛出异常
* 执行秒杀操作失败我们就抛出异常
*
* @param seckillId 秒杀的商品ID
* @param userPhone 手机号码
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/spring/applicationContext-service.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!--配置自动扫描service包下的注解-->
<context:component-scan base-package="com.nnngu.service"/>

<!--配置事物-->
<!--配置事务-->
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<!--注入数据库连接池-->
<property name="dataSource" ref="dataSource"/>
Expand Down

0 comments on commit 1a19c41

Please sign in to comment.