mybatis 新增返回id
摘要:<insert id="insertSelective" parameterType="" useGeneratedKeys="true" keyProperty="id" > </insert> 前台通过domain.getId();获取
阅读全文
posted @
2019-08-09 19:34
程序员丁先生
阅读(1241)
推荐(0) 编辑
nginx 502 错误
摘要:错误信息:upstream prematurely closed connection while reading response header from upstream, 错误现象:nginx正常接收请求,正常调用后台接口,正常获取接口返回信息,但是请求已经中断 解决方案: location
阅读全文
posted @
2019-08-02 14:48
程序员丁先生
阅读(4262)
推荐(0) 编辑
nginx跨域问题
摘要:只需要在Nginx的配置文件中配置以下参数: location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header
阅读全文
posted @
2019-08-02 10:57
程序员丁先生
阅读(167)
推荐(0) 编辑