随笔分类 -  j2ee

摘要: 阅读全文
posted @ 2020-05-20 08:41 酸奶加绿茶 阅读(206) 评论(0) 推荐(0) 编辑
摘要:<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> <version>2.1.1.RELEASE</version> 阅读全文
posted @ 2020-02-27 22:10 酸奶加绿茶 阅读(10692) 评论(0) 推荐(0) 编辑
摘要:1.项目在编译的时候application.properties都没有在target文件夹下面,原因是不小心在子module里面又加了一个module,虽然remove,delete,但是modules标签与还在pom还在 这种情况下添加module就会在module中添加module 正确的方式是 阅读全文
posted @ 2020-02-27 19:16 酸奶加绿茶 阅读(6074) 评论(0) 推荐(0) 编辑
摘要:参考资料:https://www.runoob.com/design pattern/strategy pattern.html 阅读全文
posted @ 2020-01-03 16:02 酸奶加绿茶 阅读(92) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/ngy0217/p/9006716.html top 阅读全文
posted @ 2020-01-03 16:01 酸奶加绿茶 阅读(83) 评论(0) 推荐(0) 编辑
摘要:乱码的根源 源编码与目标编码的不一致. 而中文window系统默认编码GBK,害惨了多少程序员. 要尽量减少出现乱码,我个人认为要做到5码合一, IDE(Eclipse/idea),页面(jsp/其他模板引擎),应用服务器(tomcat等), 源码(Java源码及周边文件),数据库编码. 将Ecli 阅读全文
posted @ 2019-09-23 09:02 酸奶加绿茶 阅读(189) 评论(0) 推荐(0) 编辑
摘要:参考资料: 1.http://www.nutzam.com/core/nutz_preface.html 阅读全文
posted @ 2019-08-20 16:13 酸奶加绿茶 阅读(140) 评论(0) 推荐(0) 编辑
摘要:java中为什么要使用Iterator? Iterator模式是用于遍历集合类的标准访问方法。它可以把访问逻辑从不同类型的集合类中抽象出来,从而避免向客户端暴露集合的内部结构。 参考资料:https://www.cnblogs.com/lzq198754/p/5780165.html#top 阅读全文
posted @ 2019-05-02 17:38 酸奶加绿茶 阅读(552) 评论(0) 推荐(0) 编辑
摘要:1.http://www.cnntt.com/archives/810 2.https://github.com/code4craft/webmagic 阅读全文
posted @ 2019-04-26 22:05 酸奶加绿茶 阅读(137) 评论(0) 推荐(0) 编辑
摘要:1.使用idea新建项目 2.使用Mybatis-Generator自动生成Dao、Model、Mapping相关文件 3.配置application.yml文件 4.项目结构 5.各个部分的内容 1.AccountController 2.AccountService 3.AccountMappe 阅读全文
posted @ 2019-04-10 14:40 酸奶加绿茶 阅读(605) 评论(0) 推荐(0) 编辑
摘要:Mybatis属于半自动ORM,在使用这个框架中,工作量最大的就是书写Mapping的映射文件,由于手动书写很容易出错,我们可以利用Mybatis-Generator来帮我们自动生成文件。 1.pom文件添加依赖 2.generator.properties文件编写 3.generatorConfi 阅读全文
posted @ 2019-04-10 11:30 酸奶加绿茶 阅读(279) 评论(0) 推荐(0) 编辑
摘要:背景:springboot项目内置tomcat9.0 调用的接口中有{}就会报错 解决办法: 新的tomcat新版本增加了一个新特性,就是严格按照 RFC 3986规范进行访问解析,而 RFC 3986规范定义了Url中只允许包含英文字母(a-zA-Z)、数字(0-9)、-_.~4个特殊字符以及所有 阅读全文
posted @ 2019-01-14 14:11 酸奶加绿茶 阅读(641) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/halen001/article/details/81137092 阅读全文
posted @ 2019-01-09 10:14 酸奶加绿茶 阅读(175) 评论(0) 推荐(0) 编辑
摘要:Nginx的ip_hash算法都将一个ip地址的前三段作为hash的关键字 阅读全文
posted @ 2019-01-07 16:26 酸奶加绿茶 阅读(1401) 评论(0) 推荐(0) 编辑
摘要:nginx端口映射多个应用,应用中的静态资源路径尽量是写相对路径 参考文档:1.https://blog.csdn.net/qq_27384769/article/details/78545560 阅读全文
posted @ 2019-01-07 16:15 酸奶加绿茶 阅读(4237) 评论(0) 推荐(0) 编辑
摘要:1.修改conf 下的logging.properties java.util.logging.ConsoleHandle.encoding=GBK C:\Users\Administrator>chcp活动代码页: 936 936对应的是 GB2312 阅读全文
posted @ 2019-01-07 10:22 酸奶加绿茶 阅读(260) 评论(0) 推荐(0) 编辑
摘要:spring.resources.static-locations=classpath:/static,classpath:/public,classpath:/resources,classpath:/META-INF/resources 参考资料:1.https://blog.csdn.net/ 阅读全文
posted @ 2018-12-25 10:36 酸奶加绿茶 阅读(291) 评论(0) 推荐(0) 编辑
摘要:将项目从码云clone到IntelliJ IDEA https://blog.csdn.net/wust_lh/article/details/68068176 用IDEA上传本地项目到码云/Github https://blog.csdn.net/zsyoung/article/details/7 阅读全文
posted @ 2018-12-18 09:26 酸奶加绿茶 阅读(202) 评论(0) 推荐(0) 编辑
摘要:1. mvn install:install-file -Dpackaging=jar -DgroupId=com.baidu -DartifactId=ueditor -Dversion=1.1.1 -Dfile=D:\ueditor-1.1.2.jar 参考资料1.https://blog.cs 阅读全文
posted @ 2018-12-13 19:25 酸奶加绿茶 阅读(201) 评论(0) 推荐(0) 编辑
摘要:1、pom中scope的作用 1. scope 包括 compile、test、provider、runtime、system 2.默认compile,依赖参与项目的编译、运行、打包,都会参与; 3.test仅参与测试时候的编译、运行,不会打包进去项目中 例如:junit; 4.runtime参与项 阅读全文
posted @ 2018-06-26 14:21 酸奶加绿茶 阅读(3066) 评论(0) 推荐(0) 编辑

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示