- 博客(5)
- 收藏
- 关注
原创 SSM中的常用注解
1. @Component 创建类对象,相当于配置<bean/> 2. @Service 与@Component 功能相同. 2.1 写在 ServiceImpl 类上. 3. @Repository 与@Component 功能相同. 3.1 写在数据访问层类上. 4. @Controller 与@Component 功能相同. 4.1 写在控制器类上. 5. @Reso...
2019-11-22 10:17:33
195
原创 log4j配置
log4j.rootCategory=ERROR,CONSOLE,dailyFile log4j.logger.org.mybatis =DEBUG log4j.logger.com.xlh.mapper=DEBUG log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org...
2019-11-22 10:03:06
108
原创 springMVC的配置
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springfra...
2019-11-22 10:02:47
159
原创 Spring配置
头标签: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="h...
2019-11-22 09:47:21
97
原创 MyBatis逆向工程
查询 selectByExample(TbItemDescExample example) 具体可设置的条件很多很多,根据表的结构的不同会有不同的可限制条件 selectByPrimaryKey(Long itemId) 通过主键进行查询 插入: insert(TbItem tbItem) 插入对象可能会插入null数据覆盖了默认值 insertS...
2019-10-23 21:41:19
110
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅