This commit is contained in:
qiurunze 2019-01-28 10:25:16 +08:00
parent 1a8973c9ce
commit 9c25abb1ae
4 changed files with 3 additions and 18 deletions

12
pom.xml
View File

@ -18,16 +18,6 @@
<url>http://maven.apache.org</url> <url>http://maven.apache.org</url>
<dependencies> <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> <dependency>
<groupId>com.github.sgroschupf</groupId> <groupId>com.github.sgroschupf</groupId>
@ -116,7 +106,7 @@
<dependency> <dependency>
<groupId>org.mybatis.spring.boot</groupId> <groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version> <version>1.3.2</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>

View File

@ -7,8 +7,6 @@ import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
@ImportResource({"classpath:dubbo/applicationContext-dubbo-consumer.xml"})
@ComponentScan(basePackages={"com.geekq.admin.*","com.geekq.miaosha.*"})
@SpringBootApplication @SpringBootApplication
@EnableScheduling @EnableScheduling
public class GeekQMainApplication { public class GeekQMainApplication {

View File

@ -5,7 +5,6 @@ import com.geekq.miaosha.common.resultbean.ResultGeekQ;
import com.geekq.miaosha.redis.redismanager.RedisLua; import com.geekq.miaosha.redis.redismanager.RedisLua;
import com.geekq.miaosha.service.MiaoShaUserService; import com.geekq.miaosha.service.MiaoShaUserService;
import com.geekq.miaosha.vo.LoginVo; import com.geekq.miaosha.vo.LoginVo;
import com.geekq.admin.service.OrdersService;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -28,11 +27,9 @@ public class LoginController {
@Autowired @Autowired
private MiaoShaUserService userService; private MiaoShaUserService userService;
@Reference @Reference
private OrdersService ordersService ;
@RequestMapping("/to_login") @RequestMapping("/to_login")
public String tologin(LoginVo loginVo, Model model) { public String tologin(LoginVo loginVo, Model model) {
logger.info(loginVo.toString()); logger.info(loginVo.toString());
ordersService.createOrder("111");
//未完成 //未完成
RedisLua.vistorCount(COUNTLOGIN); RedisLua.vistorCount(COUNTLOGIN);
String count = RedisLua.getVistorCount(COUNTLOGIN).toString(); String count = RedisLua.getVistorCount(COUNTLOGIN).toString();

View File

@ -24,9 +24,9 @@ log4j.logger.java.sql.PreparedStatement=DEBUG
mybatis.type-aliases-package=com.geekq.miaosha.domain mybatis.type-aliases-package=com.geekq.miaosha.domain
#开启驼峰转换 configuration config-location 不能同時存在 如果要走流程 请 放开注释 #开启驼峰转换 configuration config-location 不能同時存在 如果要走流程 请 放开注释
mybatis.configuration.map-underscore-to-camel-case=true 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 仅用于测试 #配置xml方式 因为与 mybatis.configuration.map-underscore-to-camel-case 仅用于测试
#mybatis.config-location=classpath:mybatis/mybatis-config.xml #mybatis.config-location=classpath:mybatis/mybatis-config.xml