随笔分类 -  02 spring,spring boot,spring cloud

摘要:参考: https://juejin.im/entry/5b447cbbe51d45199566f752 https://www.baeldung.com/spring boot custom starter 项目结构 子模块 mystarter (自定义starter) pom 注意: 不加会在使 阅读全文
posted @ 2019-07-11 19:57 懒企鹅 阅读(696) 评论(0) 推荐(0)
摘要:以下内容部分来自小马哥的 《springboot 编程思想》 基础 springboot 项目 maven 依赖 启动 项目会使用默认的8080端口 @SpringBootApplication 注解 替换@SpringBootApplication 启动成功! 阅读全文
posted @ 2019-06-19 22:30 懒企鹅 阅读(395) 评论(0) 推荐(0)
摘要:参考: https://stackoverflow.com/questions/43604734/springboot feignclient method has too many paramters https://www.cnblogs.com/chenkeyu/p/8482276.html 阅读全文
posted @ 2019-06-05 23:34 懒企鹅 阅读(581) 评论(0) 推荐(0)
摘要:"参考文档" 枚举 直接返回JSON couponsType:"PLATFORM" 加注解返回键值对 枚举类上加 @JsonFormat(shape = JsonFormat.Shape.OBJECT) couponsType: {info: "平台优惠券"} 自定义序列化 枚举类上加 @JsonS 阅读全文
posted @ 2019-05-23 16:04 懒企鹅 阅读(3440) 评论(0) 推荐(1)
摘要:"官方文档" 阅读全文
posted @ 2019-04-29 09:04 懒企鹅 阅读(122) 评论(0) 推荐(0)
摘要:SpringCloud + Eureka / Nacos git:https://github.com/huanmsf/springCloudLearn.git 项目目录: 父pom: 基于Eureka的服务注册和发现 provider eureka 目录 pom.xml application.y 阅读全文
posted @ 2019-04-11 18:09 懒企鹅 阅读(319) 评论(0) 推荐(0)
摘要:springMVC 设计总览 下图来源:https://www.cnblogs.com/fangjian0423/p/springMVC directory summary.html 下图来源:https://www.cnblogs.com/sunniest/p/4555801.html 核心类Di 阅读全文
posted @ 2018-08-27 20:44 懒企鹅 阅读(299) 评论(0) 推荐(0)
摘要:demon 目录,公共配置 SbMybatisApplication.java pom.xml: application.properties: spring boot + mybatis User.java UserSexEnum.java UserMapper.java userMapper.x 阅读全文
posted @ 2018-05-08 15:35 懒企鹅 阅读(295) 评论(0) 推荐(0)
摘要:spring总览 从入口看起 我们用spring时会用ClassPathXmlApplicationContext来加载spring配置文件,就从它开始吧。 1、双击shhift,输入ClassPathXmlApplicationContext,找到该类 为了方便类文件定位到左侧目录,点开左侧设置图 阅读全文
posted @ 2018-03-22 09:52 懒企鹅 阅读(189) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/leskang/p/5445698.html 1、@Controller 在SpringMVC 中,控制器Controller 负责处理由DispatcherServlet 分发的请求,它把用户请求的数据经过业务处理层处理之后封装成一个Model 阅读全文
posted @ 2018-01-29 11:20 懒企鹅 阅读(230) 评论(0) 推荐(0)
摘要:本文是阅读《深度解析Tomcat》的笔记。 源码:http://www.brainysoftware.com/source/9780975212806.zip├── src│ └── pyrmont│ ├── Constants.java│ ├── HttpServer1.java│ ├── Htt 阅读全文
posted @ 2017-12-05 16:46 懒企鹅 阅读(697) 评论(0) 推荐(0)
摘要:1、下载源码: https://github.com/spring-projects/spring-framework中找到链接: 进入:/spring-framework执行: 然后 File -> New -> Project from Existing Sources -> Navigate 阅读全文
posted @ 2017-11-22 10:45 懒企鹅 阅读(185) 评论(0) 推荐(0)
摘要:重新学习Servlet 在restclient插件输入:http://localhost:8080/testservlet/1?id=100 ,切换方法GET,POST 输出是: MyHttpServlet.doGetMyHttpServlet.service MyHttpServlet.doPos 阅读全文
posted @ 2017-11-12 19:43 懒企鹅 阅读(220) 评论(0) 推荐(0)
摘要:访问:http://localhost:8080/testservlet/1?id=100 浏览器输出:hello i am MyGenericServlet 控制台输出: >>>MyGenericServlet>>>init_p :org.apache.catalina.core.Standard 阅读全文
posted @ 2017-11-12 18:52 懒企鹅 阅读(261) 评论(0) 推荐(0)
摘要:打包发布: cd 到项目target同级目录 mvn clean package 然后 cd target/ java -jar netty-0.0.1-SNAPSHOT.jar -h运行 阅读全文
posted @ 2017-10-08 20:27 懒企鹅 阅读(4458) 评论(2) 推荐(1)