Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
qiurunze committed Jan 28, 2019
1 parent 1a8973c commit 9c25abb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
12 changes: 1 addition & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
<url>http://maven.apache.org</url>

<dependencies>
<dependency>
<groupId>com.geekq</groupId>
<artifactId>miaosha-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.geekq</groupId>
<artifactId>miaosha-admin-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.github.sgroschupf</groupId>
Expand Down Expand Up @@ -116,7 +106,7 @@
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/geekq/miaosha/GeekQMainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import org.springframework.scheduling.annotation.EnableScheduling;


@ImportResource({"classpath:dubbo/applicationContext-dubbo-consumer.xml"})
@ComponentScan(basePackages={"com.geekq.admin.*","com.geekq.miaosha.*"})
@SpringBootApplication
@EnableScheduling
public class GeekQMainApplication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.geekq.miaosha.redis.redismanager.RedisLua;
import com.geekq.miaosha.service.MiaoShaUserService;
import com.geekq.miaosha.vo.LoginVo;
import com.geekq.admin.service.OrdersService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -28,11 +27,9 @@ public class LoginController {
@Autowired
private MiaoShaUserService userService;
@Reference
private OrdersService ordersService ;
@RequestMapping("/to_login")
public String tologin(LoginVo loginVo, Model model) {
logger.info(loginVo.toString());
ordersService.createOrder("111");
//未完成
RedisLua.vistorCount(COUNTLOGIN);
String count = RedisLua.getVistorCount(COUNTLOGIN).toString();
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ log4j.logger.java.sql.PreparedStatement=DEBUG
mybatis.type-aliases-package=com.geekq.miaosha.domain
#开启驼峰转换 configuration config-location 不能同時存在 如果要走流程 请 放开注释
mybatis.configuration.map-underscore-to-camel-case=true
#mybatis.mapperLocations = classpath:com/geekq/miaosha/dao/*.xml
mybatis.mapperLocations = classpath:com/geekq/miaosha/dao/*.xml

mybatis.mapperLocations=classpath:mybatis/mapper/*.xml
#mybatis.mapperLocations=classpath:mybatis/mapper/*.xml
#配置xml方式 因为与 mybatis.configuration.map-underscore-to-camel-case 仅用于测试
#mybatis.config-location=classpath:mybatis/mybatis-config.xml

Expand Down

0 comments on commit 9c25abb

Please sign in to comment.