上一页 1 ··· 6 7 8 9 10
第一种 在service层加@Param(value="ip") void deleteIpsetup(@Param(value="ip")String ip) throws Exception; 第二种 xml层 字段改为_parameter(不管注入的是什么字段都要改为_parameter) < Read More
posted @ 2019-03-22 17:18 AlexZS Views(187) Comments(0) Diggs(0) Edit
172.0.0.1String[] splitAddress=qip.split("\\.");//--172001 String ip=splitAddress[0]+"."+splitAddress[1]+"."+splitAddress[2]+".";//截取ip 结果 -- 172.0. Read More
posted @ 2019-03-22 17:15 AlexZS Views(190) Comments(0) Diggs(0) Edit
//读取配置文件 Properties prop = new Properties(); //InputStream in = Object. class .getResourceAsStream(("/lainxiti/Url.properties" )); String cd=""; Strin Read More
posted @ 2019-03-22 17:13 AlexZS Views(102) Comments(0) Diggs(0) Edit
新建或者导入Maven项目时出错:org.apache.maven.archiver.MavenArchiver.getManifesteclipse新建maven项目时,pom.xml文件第一行报错: org.apache.maven.archiver.MavenArchiver.getManif Read More
posted @ 2019-03-18 18:38 AlexZS Views(444) Comments(0) Diggs(0) Edit
var sex='${userInfo.sex}'; if(sex=="女"){ $("input[name=sex][value='女']").attr("checked", true); }else{ $("input[name=sex][value='男']").attr("checked", true); } ... Read More
posted @ 2019-03-05 16:10 AlexZS Views(3348) Comments(0) Diggs(0) Edit
原因:上传回调的方法接收的参数应该是json格式的,之前返回的是String,所以一直走异常的方法 第一种 在后台上加上@ResponseBody 第二种 @ResponseBody @RequestMapping("/web/upload") public JSONObject uploadSou Read More
posted @ 2019-03-04 15:45 AlexZS Views(1540) Comments(0) Diggs(0) Edit
mapper接口动态代理 动态代理dao开发规则 1.namespace必需是接口的全路径名 2.接口的方法名 必需与 映射文件的sql id一致 3.接口的输入参数必需与映射文件的parameterType类型一致 4.接口的返回类型必须与映射文件的resultType类型一致 动态代理dao开发 Read More
posted @ 2019-03-01 13:37 AlexZS Views(141) Comments(0) Diggs(0) Edit
1.导入jar包 mybatis-x.x.x.jar 导入到lib目录下, 如果使用 Maven 来构建项目,则需将下面的 dependency 代码置于 pom.xml 文件中: 2. XML 构建 SqlSessionFactory 每个基于 MyBatis 的应用都是以一个 SqlSessio Read More
posted @ 2019-03-01 11:32 AlexZS Views(122) Comments(0) Diggs(0) Edit
事务的四大特征 1.原子性:一个事务中所有对数据库的操作是一个不可分割的操作序列,要么全做要么全不做 2.一致性:数据不会因为事务的执行而遭到破坏 3.隔离性:一个事物的执行,不受其他事务的干扰,即并发执行的事物之间互不干扰 4.持久性:一个事物一旦提交,它对数据库的改变就是永久的 五个隔离级别 1 Read More
posted @ 2019-02-19 10:56 AlexZS Views(216) Comments(0) Diggs(0) Edit
注入 spring依赖注入 set方法: <property name="属性名" values ="值">--ref="对象名" 构造方法: <constructor-arg name="属性名" values="值">--ref="对象名" p命名空间: 引入p命名空间的一个约束 p:属性名=值 Read More
posted @ 2019-02-19 10:26 AlexZS Views(164) Comments(0) Diggs(0) Edit
上一页 1 ··· 6 7 8 9 10