摘要: <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <fil 阅读全文
posted @ 2019-11-29 09:33 笑长不爱笑QvQ 阅读(284) 评论(0) 推荐(0) 编辑
摘要: driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mybatis?useSSL=true&useUnicode=true&characterEncoding=utf8 username=root password=123456 阅读全文
posted @ 2019-11-29 09:32 笑长不爱笑QvQ 阅读(2649) 评论(0) 推荐(0) 编辑
摘要: #将等级为DEBUG的日志信息输出到console和file这两个目的地,console和file的定义在下面的代码 log4j.rootLogger=DEBUG,console,file #控制台输出的相关设置 log4j.appender.console = org.apache.log4j.C 阅读全文
posted @ 2019-11-29 09:30 笑长不爱笑QvQ 阅读(518) 评论(0) 推荐(0) 编辑
摘要: configuration(配置) properties(属性) settings(设置) typeAliases(类型别名) typeHandlers(类型处理器) objectFactory(对象工厂) plugins(插件) environments(环境配置) environment(环境变 阅读全文
posted @ 2019-11-29 09:28 笑长不爱笑QvQ 阅读(338) 评论(0) 推荐(0) 编辑
摘要: spring注解 1.@Configuration 类上使用,使用此注解等价于XML中beans.xml配置文件,相当于loc容器。 2.@Value 为了简化从properties里取配置,可以使用@Value注入属性值 3.@Controller, @Service, @Repository,  阅读全文
posted @ 2019-11-29 09:22 笑长不爱笑QvQ 阅读(122) 评论(0) 推荐(0) 编辑
摘要: spring: <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.1.10.RELEASE</version> </dependency> <de 阅读全文
posted @ 2019-11-29 09:17 笑长不爱笑QvQ 阅读(113) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2019-11-29 09:08 笑长不爱笑QvQ 阅读(383) 评论(0) 推荐(0) 编辑