摘要: @Mapper public interface UserMapper { //登录查询 @Select("select * from user where username=#{username} and password=#{password}") public User getUser(User user); //用户列表查询 @Select("select *... 阅读全文
posted @ 2018-03-04 14:28 烽火山林 阅读(82) 评论(0) 推荐(0)
摘要: 全局文件配置pom.xml <!-- 添加父工程 --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.7.R 阅读全文
posted @ 2018-03-04 14:22 烽火山林 阅读(124) 评论(0) 推荐(0)
摘要: //1.获取计算机的当前系统时间并打印出来,要求将时间格式转换成类似下面的格式"2017-03-06 20:30:10" SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String s 阅读全文
posted @ 2018-03-04 13:04 烽火山林 阅读(142) 评论(0) 推荐(0)