相关分类: Java技术 C/C++ VB delphi
  • Java生成条码二维码

    一、概述 可用barcode4j或zxing等第三方库,推荐zxing。 barcode4j资料链接:http://barcode4j.sourceforge.net/ zxing资料链接:https://github.com/zxing/zxing 二、barcode4j 关键代码: DataMatrixBean bean = new DataMatrixBean(); final int dpi = 800 ;String...

    2018-06-18 02:46:40

  • sql判断字段是否为空

    sql语句条件查询时,有时会判断某个字段是否为空。 字段内容为空有两种情况 1.为null 2.为字符串的空'' 语句如下: select * from table where column is null or trim(column)='' 这样就可以排除字段内容为null、''的。 判断某个字段不为空 select * from table where...

    2018-06-18 02:46:38

  • JSP的9大内置对象

    JSP中有9大内置对象,分别为:request、response、session、application、out、pagecontext、config、page、exception 1.request对象: 客户端的请求信息,主要接收通过http协议传送到服务器的数据。作用域:一次请求 2.response对象: 对客户端的响应,主要是将jsp容...

    2018-06-18 02:46:36

  • SpringCloud—Eureka

    ...

    2018-06-18 02:46:35

  • javaweb学习总结——Servlet开发(一)

    1.学习资料: http://www.cnblogs.com/xdp-gacl/p/3760336.html 2.学习笔记: servlet+jsp 是一种解决方案,由 sun 公司提供。 将置于 WebContent 的 jsp ,或者静态页面 html ,可以直接通过浏览器访问,不安全的。 而将 jsp 放置于 WEB-INF 下。则需要通过 servlet...

    2018-06-18 02:46:33

  • 关于finally和return执行顺序(待补充)

    代码一: public abstract class Test { public static void main(String[] args) { System.out.println(beforeFinally()); } public static int beforeFinally(){ int a = 0 ; try { a = 1 ; return a; } finally { a = 2 ; } }} /** output:1 */ 从结果上看,貌似`fi...

    2018-06-18 02:46:32

  • org.springframework.web.context.ContextLoaderListe

    最近部署ssm项目在tomcat,tomcat启动的时候发出org.springframework.web.context.ContextLoaderListener 错误 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org....

    2018-06-18 02:46:18

  • Java高并发秒杀系统【观后总结】

    ...

    2018-06-18 02:46:02

  • spring jedis 配置

    1、自定义一个工厂类,实现FactoryBean 交由spring管理 public class JedisClusterFactory implements FactoryBeanJedisCluster { private String hostAndPort; private JedisCluster jedisCluster; private Integer timeout; private Integer maxRedirections; privat...

    2018-06-18 02:45:56

  • 新环境第一次使用设计模式有感

    换了一家公司,感觉好对不起以前那些领导的栽培和培养啊,但是没办法,我真的受不了那些烟味和每天加班到好晚好晚的工作环境,也许这就是所谓的不合吧。。 到了新的一家公司,明显比刚出来的时候要好太多,别人一说什么东西我都会有反应,而且不会一脸懵b的问别人还不...

    2018-06-18 02:45:42

2