摘要: 之前使用的表的主键为id自增,现在想变成由sequence来控制id值的增加,不能删除现有数据,数据一直保持在数据库中。 之前的schema: create table biz_job_history ( id BIGINT identity not null , job_id VARCHAR(32 阅读全文
posted @ 2021-11-18 17:52 南风85 阅读(183) 评论(0) 推荐(0)
摘要: 自增表新插一条数据后,获取插入数据的id: mapper.xml <select id="selectIdentity" resultType="java.lang.Long"> SELECT @@identity </select> mapper.java Long selectIdentity( 阅读全文
posted @ 2021-11-18 17:22 南风85 阅读(96) 评论(0) 推荐(0)
摘要: 在vue项目中,有一些配置不想在代码里写死,可以写到json文件中 json文件:\static\config.json { "detectionInterval": 15000, "intervalTimeout": 300000 } src\main.js Vue.prototype.$http 阅读全文
posted @ 2021-11-18 13:52 南风85 阅读(960) 评论(0) 推荐(0)
摘要: json文件: /static/config.json { "detectionInterval": 15000 } /build/webpack.base.conf.js resolve: { extensions: ['.js', '.vue', '.json'], alias: { '@': 阅读全文
posted @ 2021-11-18 11:11 南风85 阅读(575) 评论(0) 推荐(0)