![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java基础
文章平均质量分 78
江湖怎么没有水
这个作者很懒,什么都没留下…
展开
-
使用java的画图类
今天写一个验证码的小程序,顺便也就学习了用java的Image的类画图的一些知识。 //得到图片缓存区 BufferedImage bi=new BufferedImage(150, 70, BufferedImage.TYPE_INT_RGB); //得到绘制环境(得到图片的笔)这支笔是这幅图片定制的笔 Graphics2D g2=(Graphics2D) bi.getGrap原创 2017-09-05 20:15:48 · 528 阅读 · 0 评论 -
用intellij idea 搭建第一个SSM应用
起名字 添加目录结构 更改设置 对应各个文件夹 接下来导入各种依赖包 搜索Maven repository,找spring springmvc 各种依赖坐标 pom.xml文件: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/...原创 2018-05-29 16:35:02 · 973 阅读 · 0 评论 -
六个设计原则
六个设计原则 一、单一职责原则 (Single Responsibility Principle) There should never be more than one reason for a class to change. 意思说:一个类,应当只有一个引起它变化的原因;即一个类应该只有一个职责。类的职责越少,则对象之间的依赖关系就越少,耦合度...原创 2018-05-29 16:40:03 · 2420 阅读 · 0 评论