摘要: 首先点击help 》Eclipse Marketplace >在find中搜索mybatis下面图片的第一个 点击installed 还需要一个配置文件generatorConfig.xml 然后运行这个配置文件 运行选项使用这个插件运行(mybatis Generator) 阅读全文
posted @ 2019-06-26 14:52 张含韵好可爱 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: DBTools类 jdbc.properties url=jdbc:mysql://localhost:3306/books?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8 dao内的mapper文件可以用mybatis的插 阅读全文
posted @ 2019-06-26 14:41 张含韵好可爱 阅读(346) 评论(0) 推荐(0) 编辑
摘要: springmvc.xml <!--拦截请求 --> <mvc:interceptors> <mvc:interceptor> <!-- 要拦截的请求类型 /** 所以请求 --> <mvc:mapping path="/**"/> <!-- 不拦截的请求 --> <mvc:exclude-mapp 阅读全文
posted @ 2019-06-26 14:30 张含韵好可爱 阅读(1177) 评论(0) 推荐(0) 编辑
摘要: web.xml配置 <filter> <filter-name>LoginFilter</filter-name> //编写拦截的类的全类名 <filter-class>cn.books.filter.LoginFilter</filter-class> </filter> <filter-mapp 阅读全文
posted @ 2019-06-26 14:21 张含韵好可爱 阅读(1325) 评论(0) 推荐(0) 编辑