摘要:
解决方案: 1.上代码 @Component public class ServerHandler extends IoHandlerAdapter { @Autowired protected HealthDataService healthDataService; private static ServerHandler serverHandler ; ... 阅读全文
摘要:
//添加数据 db.users.insert({"uName":"张三","age":30,"gender":"男"}); db.users.insert({"name":"李四","wifes":[{"wname":"小崔"},{"wname":"小李"}]}); //查询数据 db.students.find(); //查询数据(带格式显示) db.us 阅读全文
摘要:
------------------客户端controller层--------------------- @RestController public class ClientFeignController { @Autowired private ProductFeignInterface productFeignInterface; @GetMapping("/msg") pu... 阅读全文
摘要:
@RestController public class ClientController { @Autowired private LoadBalancerClient loadBalancerClient; // @Autowired // private RestTemplate template; @GetMapping("/msg") public String ms... 阅读全文
摘要:
@Bean public RedisTemplate redisTemplate(RedisConnectionFactory factory) { StringRedisTemplate template = new StringRedisTemplate(factory); //jackson将java对象转换成json对象。 Jack... 阅读全文
摘要:
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... 阅读全文
摘要:
-- 声明一个人的信息,姓名、薪水、地址 declare -- Local variables here -- 姓名 v_name varchar2(50) := '张三'; --薪水 v_sal number(11,2); --地址 v_addr varchar2(200); begin -- 直接赋值 v_sal := 15800; -- 语句... 阅读全文
摘要:
package com.tz.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.jedis.JedisCo... 阅读全文
摘要:
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... 阅读全文
摘要:
/** * HQL的内连接查询 * String hql="from Customer c inner join fetch c.linkmans"; */ @Test public void test8(){ Session session = HibernateUtil.getCurrentSession(); Transaction tr = sess... 阅读全文