java基础
VinDePro
这个作者很懒,什么都没留下…
展开
-
ajax异步跨域请求实现
项目环境springboot(2.0.6.RELEASE)+mybatis(1.3.0)场景应用A页面,ajax请求到应用B实现在应用B配置跨区请求,如下:`import org.springframework.context.annotation.Bean;import org.springframework.web.cors.CorsConfiguration;impo...原创 2019-06-19 18:11:15 · 586 阅读 · 0 评论 -
由equals()引发的getClass()思考
场景描述阅读文章中一句话;如果在子类中重新定义equals,就要在其中包含调用 super.equals(other)。自己测试创建父类BaseEntitypublic class BaseEntity { private String name; String getMyName(){ return name; } @Overri...原创 2019-06-26 14:42:16 · 374 阅读 · 0 评论