dangnianchuntian / springboot Goto Github PK
View Code? Open in Web Editor NEWspringboot
Home Page: https://zhanghan.blog.csdn.net
springboot
Home Page: https://zhanghan.blog.csdn.net
功能:使用Lombok简化代码
包含模块:
启动项目并验证
{
"intLombok":3,
"strLombok":"zhanghan",
"boleanLombok":true,
"personLombok":{
"name":"zhangsan",
"age":15
}
}
功能:SpringMvc解析xml参数请求
包含模块:
启动项目并验证
<school>
<id>1111</id>
<name>沙河市第一高级中学</name>
<shortname>沙河一中</shortname>
</school>
功能:SpringBoot一个项目添加多个数据源,数据库连接池用的是高性能的HikariCP(springboot2.0以后的默认数据库连接池)
包含模块:
启动项目并验证
{
"mobile":"17633201809"
}
功能:SpringBoot中集成Redis操作
包含模块:
启动项目并验证
功能:SpringBoot中增加健康检查
包含模块:
启动项目并验证
功能:增加Redis Pipeline实现方式
包含模块:
启动项目并验证
功能:优雅替代if判断;提高系统的扩展性
包含模块:
启动项目并验证
博客地址:替代if的优雅方案,提高程序扩展性
v
Wrapper.java中
public class Wrapper implements Serializable {
private Wrapper message(String message) {
this.setMessage(message);
this.setMessage, this.setResult等报错,没有这样的成员函数?
将代码原模原样clone下来运行的时候,用postman测试/list/nearby/people接口提醒如下error:
org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public java.lang.Object.com.zhanghan.zhnearbypeople.controller.GeoController.listNearByPeople(com.zhanghan.zhnearbypeople.controller.request.ListNearByPeopleRequest) with 3 errors: [Field error in object 'listNearByPeopleRequest' on field 'customerId': rejected value [null]; codes [NotNull.listNearByPeopleRequest.customerId,NotNull.customerId,NotNull.java.lang.String,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [listNearByPeopleRequest.customerId,customerId]; arguments []; default message [customerId]]; default message [不能为null]] [Field error in object 'listNearByPeopleRequest' on field 'pageIndex': rejected value [null];
方便的话 ,可以贴一下你的logstash.conf文件么,刚开始搭建这个,谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.