java笔记

2020-06-14  本文已影响0人  A徐小帅

基础

教程

https://www.liaoxuefeng.com/wiki/1252599548343744

lambda

https://www.jianshu.com/p/613a6118e2e0

参数验证

https://developer.ibm.com/zh/articles/j-lo-jsr303/

sprint-boot

项目初始化

项目运行方式

集成druid

https://github.com/alibaba/druid/tree/master/druid-spring-boot-starter

运行时报错

因为本机的hostname没有写入到hosts中,需要手动进行添加,输入命令行输入hostname得到hostname,在etc/hosts中添加解析记录到127.0.0.1与::1的记录,添加完成后项目就会启动飞快。

➜  spring-boot-book-v2 git:(master) ✗ hostname
xstoopdeMacBook-Pro.local
➜  spring-boot-book-v2 git:(master) ✗ vi /etc/hosts
127.0.0.1           xstoopdeMacBook-Pro.local
::1                 xstoopdeMacBook-Pro.local

监听器

使用监听器
源码分析

获取请求参数

https://www.hangge.com/blog/cache/detail_2485.html

参数验证

https://juejin.im/post/6844903991621451789

myBaits

myBaits-Plus

https://gitee.com/baomidou/mybatis-plus
https://gitee.com/baomidou/mybatis-plus-samples

上一篇下一篇

猜你喜欢

热点阅读