- 博客(7)
- 收藏
- 关注
原创 bootstrap-treeview 案例。
<!DOCTYPE html> <html> <head > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> .buttonclass { margin-righ
2018-11-07 14:40:22
1470
原创 初识springboot 的一些问题(刚入门遇见的一些报错)
启动项 pack为com.zmf 则 其他自动扫描的文件需要 com.zmf包及其子包下,不然会报错。 @MapperScan 可以扫描 包下的所有mapper文件,不加@MapperScan,则需要在mapper文件加@Mapper Controller跳转到如html文件中: 不加入上图dependency ,会出现 <meta> 要以</meta>结...
2018-10-10 16:41:56
179
转载 java jdk动态代理和CGLib。
代理模式:代理类和被代理类实现共同的接口(或继承),代理类中存有指向被代理类的索引,实际执行时通过调用代理类的方法、实际执行的是被代理类的方法。 JDK动态代理只能对实现了接口的类生成代理,而不能针对类 CGLIB是针对类实现代理,主要是对指定的类生成一个子类,覆盖其中的方法(继承) 代码如下: 测试类: ...
2018-09-10 17:55:13
166
原创 spring 依赖注入bean的属性
对于类成员变量,spring支持构造函数注入,属性setter方法注入 0. domain类 public class Student { private String name; private int age; public Student(){ } public Student(String name,int age){ this.name=name; this.
2017-11-16 14:47:22
247
原创 spring ioc 容器装配bean
applicationContext.xml 配置 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework
2017-11-13 09:33:55
177
原创 json-- google json 组件
package com.zmf.utils; import java.util.List; import java.util.Map; import com.google.gson.ExclusionStrategy; import com.google.gson.FieldAttributes; import com.google.gson.Gson; import
2017-10-31 11:36:27
369
原创 mac 启动mysql问题
提示错误: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 解决方式: bash mysql.server start
2017-10-31 09:08:18
228
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人