#下载 docker pull mysql #启动mysql容器,返回容器id (-p 3306:3306 指定外部连接端口,不指定外部连接不上) docker run --name gitlab-mysql -e MYSQL_ROOT_PASSWORD=Mimais163. -d mysql #连接进入mysql命令行 docker run -it --link gitlab-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"' #MySQL命令 show databases; #显示数据库 quit #退出命令行
#进入设置 Running in system-mode. Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): #Specify the following URL during the Runner setup:http://exxk.me:10080/ > http://exxk.me:10080/ Please enter the gitlab-ci token for this runner: #Use the following registration token during setup:qg78V4rsaxabgULs-cps > qg78V4rsaxabgULs-cps Please enter the gitlab-ci description for this runner: > [dd8f66b4b9ac]: aa Please enter the gitlab-ci tags for this runner (comma separated): > cc Whether to run untagged builds [true/false]: > [false]: Whether to lock Runner to current project [true/false]: > [false]: Registering runner... succeeded runner=qg78V4rs Please enter the executor: docker, parallels, shell, docker+machine, kubernetes, docker-ssh, ssh, virtualbox, docker-ssh+machine: # 选择runner 运行的环境 这里是docker > docker Please enter the default Docker image (e.g. ruby:2.1): > tomcat Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
onSelect: function (row) { console.log("onSelect",row); var values=$(this).combobox('getValues'); var getData=$(this).combobox('getData'); console.log("getdata",getData); var valuesT=[]; for(i=0;i<values.length;i++){ for (ii=0;ii<getData.length;ii++){ if (values[i]==getData[ii].invatationcode){ valuesT.push(values[i]); console.log("有效",valuesT); } } } if (lent==valuesT.length-1){ console.log("=="); lent= valuesT.length; $(this).combobox('setValues',valuesT); }else { console.log("!=") } }
通过遍历源数据 var getData=$(this).combobox('getData');和选中的数据(输入框的数据) var values=$(this).combobox('getValues');对比得到有效的选中数据,但是还需要在合适的时间设置有效选择数据
package com.xhzg.xhzg.mapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; @Mapper publicinterfaceUserMapper { @Select("select * from user where username=#{username}") User loadUserByUsername(String username); }
常用注解
1
@Select("select * from user where username=#{username}")//查询语
Mapper method 'com.xxx' has an unsupported return type: class com.xxx.User问题原因是mapper 中insert只能返回int,因此修改返回类型即可
nested exception is org.apache.ibatis.builder.BuilderException: Error invoking SqlProvider method (com.xhzg.xhzg.mapper.Provider.queryflowerByParam). Cannot invoke a method that holds named argument(@Param) using a specifying parameterObject. In this case, please specify a 'java.util.Map' object.错误解决:指定@param
#菜单 tags: /tags/ || tags updated: 2018-01-28 21:41:27 categories: /categories/ || th #样式 scheme: Pisces #评论 gitment: enable: true mint: true # RECOMMEND, A mint on Gitment, to support count, language and proxy_gateway count: true # Show comments count in post meta area lazy: false # Comments lazy loading with a button cleanly: false # Hide 'Powered by ...' on footer, and more language: # Force language, or auto switch by theme github_user: xuanfong1 # MUST HAVE, Your Github ID github_repo: hexo # MUST HAVE, The repo you use to store Gitment comments client_id: ff47a05197bc142b8dc0 # MUST HAVE, Github client id for the Gitment client_secret: b52d05ee5566230edfcf653efab9fd9fce6756c8 # EITHER this or proxy_gateway, Github access secret token for the Gitment proxy_gateway: # Address of api proxy, See: https://github.com/aimingoo/intersect redirect_protocol: # Protocol of redirect_uri with force_redirect_protocol when mint enabled
cd ~ #下载安装目录 wget https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-39.4.49.tar.gz #下载 tar xzf dropbox-lnx.x86_64-39.4.49.tar.gz #解压 ls #解压后用ls,查看不到改文件,因为是.开头的 cd ~/. <按TAB键> #可以看到 proxychains4 ~/.dropbox-dist/dropboxd #安装,需要使用代理,proxychains4安装见前面的文章