摘要: #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; ev 阅读全文
posted @ 2019-01-29 11:45 宇枫 阅读(189) 评论(0) 推荐(0) 编辑
摘要: springboot聚合工程之添加mybatis数据库持久化操作 在boot-polymer-repository工程添加mybatis的相关依赖 添加application配置本项目使用的是yml文件 第三步:使用mybatis自动生成工具将表生成mapper文件 CREATE TABLE `bu 阅读全文
posted @ 2019-01-26 19:02 宇枫 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: 前篇已经成功创建了springboot的聚合工程并成功访问,下面就要开始子工程木块之间的调用: springboot项目的特点,一个工程下面的类必须要放在启动类下面的子目录下面,否则,启动的时候会报错 启动项目 访问 到此springboot的项目工程子工程之间已经可以成功调用 阅读全文
posted @ 2019-01-25 15:40 宇枫 阅读(591) 评论(0) 推荐(0) 编辑
摘要: 比起传统复杂的单体工程,使用Maven的多模块配置,可以帮助项目划分模块,鼓励重用,防止POM变得过于庞大,方便某个模块的构建,而不用每次都构建整个项目,并且使得针对某个模块的特殊控制更为方便。接下来,本文将重点阐述SpringBoot在Maven环境的多模块构建过程。 第一步:创建父工程 使用sp 阅读全文
posted @ 2019-01-25 15:07 宇枫 阅读(9165) 评论(1) 推荐(0) 编辑
摘要: public static void main(String[] args) { Date date = new Date(); SimpleDateFormat df = new SimpleDateFormat("HH"); String str = df.format(date); int a = Integer.parseI... 阅读全文
posted @ 2019-01-16 22:49 宇枫 阅读(10102) 评论(0) 推荐(1) 编辑
摘要: 批量插入数据经常是把一个集合的数据一次性插入数据库,只需要执行一次sql语句,但是批量插入通常会报框架版本号的错误,本人就遇到 com.alipay.zdal.parser.exceptions.a: ERROR ## get sqlparser result from cache has an e 阅读全文
posted @ 2019-01-09 20:44 宇枫 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: 先来普及一下基本数据类型的长度: unsigned int 0~4294967295 int -2147483648~2147483647 unsigned long 0~4294967295long -2147483648~2147483647long long的最大值:9223372036854 阅读全文
posted @ 2018-12-24 18:28 宇枫 阅读(9676) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-12-17 16:43 宇枫 阅读(8912) 评论(2) 推荐(0) 编辑
摘要: 命令:mvn install:install-file -Dfile=D:\jar包路径xxxx.jar -DgroupId=根目录文件夹名字 -DartifactId=子目录文件夹 -Dversion=版本号 -Dpackaging=jar 例子: mvn install:install-file 阅读全文
posted @ 2018-12-17 10:51 宇枫 阅读(3568) 评论(0) 推荐(0) 编辑
摘要: //扔 n 个骰子,向上面的数字之和为 S。给定 Given n,请列出所有可能的 S 值及其相应的概率public class Solution { /** * @param n an integer * @return a list of Map.Entry */ public List> dicesSum(int n) { //... 阅读全文
posted @ 2018-12-05 20:55 宇枫 阅读(917) 评论(0) 推荐(0) 编辑