11 2020 档案
摘要:先建立db.properties文件db.driver=com.mysql.jdbc.Driverdb.url=数据库地址db.user=用户名db.pwd=密码#hibernate框架#扫描包hibernate.package.scan=包结构#数据库引擎hibernate.dialect=org
阅读全文
摘要:@GenericGenerator GenericGenerator注解是hibernate所提供的自定义主键生成策略生成器由GenericGenerator实现多定义的策略 所以,它要配合GeneratedValue一起使用,GeneratedValue注解中的”generator”属性要与, G
阅读全文
摘要:/**定义切面*/@Aspect/**加入spring容器*/@Component/**日志输出 topic对应的是log4j.properties 的属性名log4j.logger.test*/@Slf4j(topic = "test")/** * @title 日志切面 * @author: c
阅读全文
摘要://1.创建Map集合Map persons=new HashMap(16);//HashMap的默认初始化容量是16,默认加载因子是0.75//2.存储键值对persons.put("10000","JACK");persons.put("10011","JACK");persons.put("1
阅读全文