diff --git a/.idea/libraries/Maven__org_projectlombok_lombok_1_18_2.xml b/.idea/libraries/Maven__org_projectlombok_lombok_1_18_2.xml
new file mode 100644
index 0000000..638f01b
--- /dev/null
+++ b/.idea/libraries/Maven__org_projectlombok_lombok_1_18_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index a45e91d..fa63eaa 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,9 +2,15 @@
-
-
-
+
+
+
+
+
+
+
+
+
@@ -35,87 +41,93 @@
-
-
-
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
+
-
+
+
-
+
-
+
-
-
-
+
+
+
-
+
-
-
+
+
-
-
-
+
+
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
@@ -123,28 +135,82 @@
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -152,34 +218,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -208,31 +251,20 @@
Base_Column_List
sw
getMiaoShaUserById
+ zookeeper
+ dev
+ maxActive
+ qiu
+ port
+
@@ -276,28 +325,253 @@
true
DEFINITION_ORDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+ AOP
+
+
+ Android
+
+
+ Angular
+
+
+ Application Servers
+
+
+ Class metricsJava
+
+
+ Class structureJava
+
+
+ Cloning issuesJava
+
+
+ Code style issuesJava
+
+
+ CorrectnessLintAndroid
+
+
+ Cucumber
+
+
+ Declaration redundancyJava
+
+
+ DeclarationGroovy
+
+
+ Dependency issuesJava
+
+
+ EncapsulationJava
+
+
+ Error handlingGroovy
+
+
+ Error handlingJava
+
+
+ Error handlingJavaScript
+
+
+ Faces Model
+
+
+ FinalizationJava
+
+
+ FlexUnit
+
+
+ GeneralJavaScript
+
+
+ Google Web Toolkit
+
+
+ Groovy
+
+
+ HTML
+
+
+ Hibernate
+
+
+ ImportsJava
+
+
+ Inheritance issuesJava
+
+
+ InitializationJava
+
+
+ InternationalizationJava
+
+
+ InternationalizationLintAndroid
+
+
+ J2ME issuesJava
+
+
+ JPA
+
+
+ JSP
+
+
+ Java
+
+
+ Java 5Java language level migration aidsJava
+
+
+ Java EE
+
+
+ Java interop issuesKotlin
+
+
+ Java language level migration aidsJava
+
+
+ JavaScript
+
+
+ JavadocJava
+
+
+ Kotlin
+
+
+ LintAndroid
+
+
+ MemoryJava
+
+
+ Method metricsJava
+
+
+ Naming conventionsJava
+
+
+ Naming conventionsKotlin
+
+
+ OSGi
+
+
+ Packaging issuesJava
+
+
+ PerformanceJava
+
+
+ Plugin DevKit
+
+
+ Potentially confusing code constructsGroovy
+
+
+ Potentially confusing code constructsJavaScript
+
+
+ Probable bugsJava
+
+
+ Probable bugsKotlin
+
+
+ Properties Files
+
+
+ Redundant constructsKotlin
+
+
+ RegExp
+
+
+ SecurityJava
+
+
+ SecurityLintAndroid
+
+
+ Spring
+
+
+ Spring BootSpring
+
+
+ Spring DataSpring
+
+
+ Struts
+
+
+ Struts 1Struts
+
+
+ Threading issuesGroovy
+
+
+ Threading issuesJava
+
+
+ UI Form
+
+
+ VisibilityJava
+
+
+ Web Services
+
+
+ XML
+
@@ -313,9 +587,6 @@
-
-
-
@@ -356,16 +627,7 @@
-
-
-
-
-
-
-
-
-
-
+
@@ -377,28 +639,60 @@
-
-
-
-
+
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -410,35 +704,35 @@
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -452,7 +746,7 @@
-
+
@@ -492,6 +786,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -512,30 +819,17 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
@@ -580,12 +874,29 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -600,7 +911,7 @@
-
+
@@ -610,20 +921,20 @@
-
-
+
+
-
-
-
+
+
+
-
+
@@ -631,10 +942,10 @@
-
+
-
+
@@ -644,28 +955,28 @@
-
-
+
+
-
-
-
+
+
+
-
+
-
-
-
+
+
+
-
+
@@ -749,14 +1060,34 @@
+
+ file://$PROJECT_DIR$/src/main/java/com/geekq/miaosha/Test.java
+ 45
+
+
+
+
+
+
+
+
+ tmp & i
+ JAVA
+ EXPRESSION
+
+
+ keys[j]
+ JAVA
+ EXPRESSION
+
this.getBridgedMethod()
JAVA
@@ -780,228 +1111,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1009,37 +1118,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1054,6 +1132,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1061,56 +1153,339 @@
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
+
+
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1163,7 +1538,7 @@
- miaosha_1
+ miaosha
diff --git a/README.md b/README.md
index 6b824af..2ad30eb 100644
--- a/README.md
+++ b/README.md
@@ -127,3 +127,12 @@ redis的数量不是库存,他的作用仅仅只是为了阻挡多余的请求
本文使用的是注解方法开发所以不做过多解释
下面仔细讲解以下如何详细使用xml开发在目录里面有一个与本文无挂的类似于微信自动回复的功能br>
里面有mybatis的全部解析和用法,大家可以简单的当做一个demo来使用
+
+### maven 隔离
+
+ maven隔离就是在开发中,把各个环境的隔离开来,一般分为
+ 本地(local)
+ 开发(dev)
+ 测试(test)
+ 线上(prod)
+ 在环境部署中为了防止人工修改的弊端! spring.profiles.active=@activatedProperties@
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 8f86cef..03941ff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -169,7 +169,7 @@
src/main/resources
true
- application.properties
+ application-local.properties
application-dev.properties
application-prod.properties
application-test.properties
@@ -194,14 +194,20 @@
- dev
+ local
- dev
+ local
true
+
+ dev
+
+ dev
+
+
test
diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties
index 731e97a..60c67e3 100644
--- a/src/main/resources/application-dev.properties
+++ b/src/main/resources/application-dev.properties
@@ -16,7 +16,7 @@ mybatis.mapperLocations=classpath:mybatis/mapper/*.xml
#add mybatis
mybatis.config-locations=classpath:mybatis/config.xml
#datasource
-spring.datasource.url=jdbc:mysql://localhost:3306/qiurunze?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
+spring.datasource.url=jdbc:mysql://localhost:3306/miaosha?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
spring.datasource.username=root
spring.datasource.password=aixiyue11
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
@@ -67,5 +67,6 @@ spring.rabbitmq.template.retry.initial-interval=1000
spring.rabbitmq.template.retry.max-attempts=3
spring.rabbitmq.template.retry.max-interval=10000
spring.rabbitmq.template.retry.multiplier=1.0
-
-## maven隔离
\ No newline at end of file
+server.port=8003
+## maven隔离
+spring.profiles.active=@activatedProperties@
\ No newline at end of file
diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties
index 95ff4d1..796c254 100644
--- a/src/main/resources/application-prod.properties
+++ b/src/main/resources/application-prod.properties
@@ -68,4 +68,6 @@ spring.rabbitmq.template.retry.max-attempts=3
spring.rabbitmq.template.retry.max-interval=10000
spring.rabbitmq.template.retry.multiplier=1.0
-## maven隔离
\ No newline at end of file
+## maven隔离
+
+spring.profiles.active=@activatedProperties@
\ No newline at end of file
diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties
index 971004b..b5b8157 100644
--- a/src/main/resources/application-test.properties
+++ b/src/main/resources/application-test.properties
@@ -68,4 +68,6 @@ spring.rabbitmq.template.retry.max-attempts=3
spring.rabbitmq.template.retry.max-interval=10000
spring.rabbitmq.template.retry.multiplier=1.0
-## maven隔离
\ No newline at end of file
+## maven隔离
+
+spring.profiles.active=@activatedProperties@
\ No newline at end of file
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 4984720..c90492a 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -51,6 +51,8 @@ redis.password=123456
redis.poolMaxTotal=1000
redis.poolMaxIdle=500
redis.poolMaxWait=500
+#server.port=8003
+
#rabbitmq
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
@@ -69,4 +71,4 @@ spring.rabbitmq.template.retry.max-interval=10000
spring.rabbitmq.template.retry.multiplier=1.0
## maven隔离
-pring.profiles.active=@activatedProperties@
\ No newline at end of file
+spring.profiles.active=dev
\ No newline at end of file
diff --git a/target/classes/application.properties b/target/classes/application.properties
index 21ec2b9..c90492a 100644
--- a/target/classes/application.properties
+++ b/target/classes/application.properties
@@ -51,6 +51,8 @@ redis.password=123456
redis.poolMaxTotal=1000
redis.poolMaxIdle=500
redis.poolMaxWait=500
+#server.port=8003
+
#rabbitmq
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
@@ -69,4 +71,4 @@ spring.rabbitmq.template.retry.max-interval=10000
spring.rabbitmq.template.retry.multiplier=1.0
## maven隔离
-pring.profiles.active=test
\ No newline at end of file
+spring.profiles.active=dev
\ No newline at end of file