
java框架
戏子张
个人 写的一些小dome ,给自己作为笔记,也希望对 你们有用,有不对的地方 可以留言给我。
展开
-
关于spring boot 使用.yml属性文件对对象属性进行属性值注入是,获取user中name值出现问题
#此处也是spring boot的全局配置文件,用于修改spring boot给我们的默认配置 #在对象属性进行配置文件方式注入时,属性的名称不能为name,会对系统文件进行冲突,导致属性 #注入被覆盖为Administrator(管理员)名称 server: port: 8080 user: username: 张三 age: 20 sex: true birth: 201...原创 2019-12-11 09:47:59 · 1250 阅读 · 6 评论 -
mybatis入门案例
//mybatis入门案例 //po代码 package po; public class user { private int id; private String username; private String birthday; private String sex; private String address; public int getId() { return id; } pub...原创 2019-09-11 10:31:30 · 211 阅读 · 0 评论 -
Spring整合struts2 applicationContext.xml完整配置和解释
Spring整合struts2 applicationContext.xml完整配置和解释 <?xml version="1.0" encoding="UTF-8"?> org.hibernate.dialect.MySQL5Dialect true ...原创 2019-09-11 10:39:16 · 511 阅读 · 0 评论 -
mybatis 的增删改查
mybatis 的增删改查 //po类的配置,可根据此配置编写数据库 package po; public class user { private int id; private String username; private String birthday; private String sex; private String address; public int get...原创 2019-09-11 15:48:33 · 133 阅读 · 0 评论