diff --git a/docs/spring/cs3d8012a4-e65a-11ee-bf17-acde48001122.java b/docs/spring/cs3d8012a4-e65a-11ee-bf17-acde48001122.java new file mode 100644 index 00000000..d3fae409 --- /dev/null +++ b/docs/spring/cs3d8012a4-e65a-11ee-bf17-acde48001122.java @@ -0,0 +1,45 @@ +/** + * Copyright 2009-2015 the original author or authors. + *
+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *
+ * http://www.apache.org/licenses/LICENSE-2.0 + *
+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ibatis.submitted.batch_keys; + +public class User { + private Integer id; + private String name; + + public User() { + } + + public User(Integer id, String name) { + this.id = id; + this.name = name; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/docs/spring/cs3dced326-e65a-11ee-bf17-acde48001122.java b/docs/spring/cs3dced326-e65a-11ee-bf17-acde48001122.java new file mode 100644 index 00000000..95b187a8 --- /dev/null +++ b/docs/spring/cs3dced326-e65a-11ee-bf17-acde48001122.java @@ -0,0 +1,26 @@ +package com.huifer.xz.entity; + +/** + * 描述: + * + * @author: huifer + * @date: 2019-10-16 + */ +public class RabbitMqType { + public static final String CITY_EXCHANGE = "city_id_exchange"; + + /** + * 存放 {@link CityUrlInfo} + */ + public static final String CITY_QUEUE_URL = "city_queue_url"; + /** + * 存放{@link com.huifer.xz.entity.TXz} + */ + public static final String USER_QUEUE_INFO = "user_queue_info"; + + /** + * 行者路线数据 + */ + public static final String XZ_WO = "xz_wo"; + +} diff --git a/docs/spring/cs3e2343b6-e65a-11ee-bf17-acde48001122.java b/docs/spring/cs3e2343b6-e65a-11ee-bf17-acde48001122.java new file mode 100644 index 00000000..415c5fe9 --- /dev/null +++ b/docs/spring/cs3e2343b6-e65a-11ee-bf17-acde48001122.java @@ -0,0 +1,23 @@ +/** + * Copyright 2009-2018 the original author or authors. + *
+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *
+ * http://www.apache.org/licenses/LICENSE-2.0 + *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.ibatis.submitted.selectkey;
+
+public class SqlProvider {
+
+ public String insertTable3_2(Name name) {
+ return "insert into table3 (id, name) values(#{nameId}, #{name})";
+ }
+}
diff --git a/docs/spring/cs3e79ce8e-e65a-11ee-bf17-acde48001122.java b/docs/spring/cs3e79ce8e-e65a-11ee-bf17-acde48001122.java
new file mode 100644
index 00000000..3790f192
--- /dev/null
+++ b/docs/spring/cs3e79ce8e-e65a-11ee-bf17-acde48001122.java
@@ -0,0 +1,72 @@
+package com.huifer.redis.config;
+
+import com.huifer.redis.pojo.Student;
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.core.StringRedisTemplate;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+@SpringBootTest
+@RunWith(SpringJUnit4ClassRunner.class)
+public class RedisConfigTest {
+
+ @Autowired
+ private StringRedisTemplate redis;
+ @Autowired
+ private RedisTemplate