1.业务是从前台传入List<T> ,在controller层接受参数,并进行批量新增操作. 2.需要处理的细节 a) mybatis可以支持批量新增,注意数据表需要将主键设置成自增列. b) 由于spring mvc 无法将参数[{id:0,text:'a'},{id:1,text:'b'}] json字符串转换为对应的List<T>,因此需要自己手动封装一个方法用于将传入的字符串转换为泛型集合 3.具体实现步骤 a) js提交 需要注意的是必须在参数名上加引号 var dept…
假定场景:批量导入用户信息 一般批量新增使用 SELECT … INSERT INTO 和 INSERT INTO … SELECT 我们这次使用第二种 一.先建一张用户信息表模拟批量导入用户信息 create table u_info{ id NUMBER not null, info_no ) not null, name ) not null, birthday DATE, age NUMBER, create_date DATE not null } -- 自动按天数分区 -- tabl…
1.Install gcc-arm-none-eabi https://devzone.nordicsemi.com/tutorials/7/This link shows that development with GCC and Eclipse, As it say we should download .extract and configure arm-none-eabi-gcc. But I find it's hard to download arm-none-eabi-gcc in…
① 新浪SAE快速上手教程:http://jingyan.baidu.com/season/43090 上面一个链接是针对PHP的相关介绍,如果用java还有点不一样,具体请看新浪SAE官网:http://sae.sina.com.cn/doc/java/tutorial.html#id2 ② 我用的是java web,和php不一样,只能上传war文件(好像不能直接编辑),接着从官网看到这个: 以为可以把这个插件用在MyEclipse上,但是结果不行,接着找到了在MyEclipse下装SVN的…
redis 异常解决办法 26069:M 08 Aug 17:06:58.858 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 26069:M 08 Aug 17:06:58.859 # Server started, Redis version 3.0.7 26069:M 08…
tomat在linux服务器上启动报The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0_26/jre/lib/i386/server:/usr/local/jdk1.6.0_26/jre/lib/i386:/usr/local…