摘要:
meta是html语言head区的一个辅助性标签。几乎所有的网页里,我们可以看到类似下面这段的html代码: <head> <meta http-equiv="content-Type" content="text/html; charset=gb2312"> </head> 也许你认为这些代码可有 阅读全文
摘要:
nginx做反向负载均衡,后端服务器获取真实客户端ip 首先,在前端nginx上需要做如下配置: location / proxy_set_hearder host $host; proxy_set_header X-forwarded-for $proxy_add_x_forwarded_for; 阅读全文
摘要:
springboot中抛出异常,springboot自带的是springmvc框架,这个就不多说了。 springmvc统一异常解决方法这里要说明的是。只是结合了springboot的使用而已。直接上代码,有效有用的才是ok。 1.定义异常捕获 2.定义一个返回对象 3.定义一个启动Applicat 阅读全文