1.深度克隆一个对象 import org.springframework.beans.BeanUtils; UserInfoDto user = new UserInfoDto(); user.setName("Tony"); UserInfoDto user2 = new UserInfoDto ...
分类:
编程语言 时间:
2020-03-05 09:14:15
阅读次数:
102
1.spring 1.1 @Autowired与@resource的区别@Autowired spring byType@resource jdk byName2 mybatis2.1 在where后拼接sql语句不能出现小于号(好奇葩的规则)改为1>a;3.form表单提交前验证使用onsubmi ...
分类:
其他好文 时间:
2020-03-03 22:17:28
阅读次数:
75
错误提示:cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content type is element-only 最终的解决办法:把有红叉的地方手写一边然后就好了, ...
分类:
编程语言 时间:
2020-03-02 12:47:02
阅读次数:
76
1、引入问题 1.1、导入jar包时maven会自动将该jar包所依赖的jar包也一起导入进来,比如spring-context依赖spring-beans、spring-beans依赖spring-core,在导入spring-context时会同时自动导入spring-beans、spring- ...
分类:
编程语言 时间:
2020-03-02 11:17:42
阅读次数:
85
配置参考: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in ...
分类:
编程语言 时间:
2020-03-02 11:00:04
阅读次数:
71
1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-in ...
分类:
编程语言 时间:
2020-03-02 00:32:37
阅读次数:
77
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException ...
分类:
其他好文 时间:
2020-03-01 23:22:49
阅读次数:
135
Exception in thread "main" org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.wangyang.demo.Person] is ...
分类:
其他好文 时间:
2020-03-01 21:48:37
阅读次数:
60
1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-in ...
分类:
编程语言 时间:
2020-03-01 20:20:30
阅读次数:
77
1.导入依赖 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i ...
分类:
其他好文 时间:
2020-03-01 17:09:47
阅读次数:
55