上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
摘要: 解决方案: 1.上代码 @Component public class ServerHandler extends IoHandlerAdapter { @Autowired protected HealthDataService healthDataService; private static ServerHandler serverHandler ; ... 阅读全文
posted @ 2018-09-25 17:05 scwyfy 阅读(9537) 评论(0) 推荐(1) 编辑
摘要: //添加数据 db.users.insert({"uName":"张三","age":30,"gender":"男"}); db.users.insert({"name":"李四","wifes":[{"wname":"小崔"},{"wname":"小李"}]}); //查询数据 db.students.find(); //查询数据(带格式显示) db.us 阅读全文
posted @ 2018-09-10 09:48 scwyfy 阅读(118) 评论(0) 推荐(0) 编辑
摘要: ------------------客户端controller层--------------------- @RestController public class ClientFeignController { @Autowired private ProductFeignInterface productFeignInterface; @GetMapping("/msg") pu... 阅读全文
posted @ 2018-09-05 10:52 scwyfy 阅读(94) 评论(0) 推荐(0) 编辑
摘要: @RestController public class ClientController { @Autowired private LoadBalancerClient loadBalancerClient; // @Autowired // private RestTemplate template; @GetMapping("/msg") public String ms... 阅读全文
posted @ 2018-09-05 09:55 scwyfy 阅读(163) 评论(0) 推荐(0) 编辑
摘要: @Bean public RedisTemplate redisTemplate(RedisConnectionFactory factory) { StringRedisTemplate template = new StringRedisTemplate(factory); //jackson将java对象转换成json对象。 Jack... 阅读全文
posted @ 2018-08-31 14:33 scwyfy 阅读(4461) 评论(0) 推荐(0) 编辑
摘要: package cn.demo.service.impl; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.util.ArrayList; import java.util.Hash... 阅读全文
posted @ 2018-08-23 08:44 scwyfy 阅读(445) 评论(0) 推荐(0) 编辑
摘要: -- 声明一个人的信息,姓名、薪水、地址 declare -- Local variables here -- 姓名 v_name varchar2(50) := '张三'; --薪水 v_sal number(11,2); --地址 v_addr varchar2(200); begin -- 直接赋值 v_sal := 15800; -- 语句... 阅读全文
posted @ 2018-07-08 23:37 scwyfy 阅读(197) 评论(0) 推荐(0) 编辑
摘要: package com.tz.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.jedis.JedisCo... 阅读全文
posted @ 2018-06-27 12:12 scwyfy 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: package cn.xhsd.util.split; import javax.servlet.http.HttpServletRequest; import cn.xhsd.action.abs.AbstractAction; public class SplitUtil { private int cp = 1; private int ls = 3; private Stri... 阅读全文
posted @ 2018-03-12 14:46 scwyfy 阅读(112) 评论(0) 推荐(0) 编辑
摘要: /** * HQL的内连接查询 * String hql="from Customer c inner join fetch c.linkmans"; */ @Test public void test8(){ Session session = HibernateUtil.getCurrentSession(); Transaction tr = sess... 阅读全文
posted @ 2018-02-24 11:51 scwyfy 阅读(311) 评论(3) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页