- 博客(7)
- 收藏
- 关注
原创 前后端分离获取不到用户真实IP
后端接口内获取的只能是127.0.0.1最后从web服务器上处理 location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forw
2021-09-10 22:56:41
819
原创 golang APP支付的代码总结
使用的包:github.com/iGoogle-ink/gopay前端用的uniapp文档地址:https://uniapp.dcloud.io/api/plugins/payment//上面是根据订单ID获取订单的一些基础数据....client := wechat.NewClient("微信开放平台申请的移动应用APPid", "商户ID", "商户APIkey", true) //设置国家 client.SetCountry(wechat.China) //初始化.
2021-08-28 13:21:22
868
原创 mabatis plus 的insert的方法插入一条数据到数据库后返回记录的主键
<insert id="insertSysEdubureau" parameterType="com.imcdn.sys_manage.pojo.domain.SysEdubureau" keyProperty="id" useGeneratedKeys="true"> insert into sys_edubureau(id,create_time,city...
2019-05-24 11:43:36
2397
原创 swagger-ui 在Spring boot项目中报错Unable to infer base url
Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served....
2019-05-24 09:37:37
749
原创 mybatis-generator-maven-plugin插件的一些坑
mybatis-generator-maven-plugin插件的一些坑 1、配置mybatis-generator-maven-plugin插件在maven的pom.xml的<build></build>节点内添加<!--要放在与pluginManagement同级别才能生效--><...
2019-04-09 17:49:00
22271
7
原创 maven中使用jstl
maven中使用jstl 在pom.xml文件下面增加如下的依赖包:<dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version>&...
2019-04-08 13:13:00
11053
转载 常用的几个vagrant命令
$ vagrant init # 初始化$ vagrant up # 启动虚拟机$ vagrant halt # 关闭虚拟机$ vagrant reload # 重启虚拟机$ vagrant ssh # SSH 至虚拟机$ vagrant suspend # 挂起虚拟机$ vagrant resume # 唤醒虚拟机$ ...
2018-07-20 10:22:15
1592
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅