自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

hc的博客

笑口常开,好运自然来!

  • 博客(11)
  • 收藏
  • 关注

原创 SpringBoot SpringSecurity配置类

import org.springframework.context.annotation.Configuration;import org.springframework.security.config.annotation.web.builders.HttpSecurity;import org.springframework.security.config.annotation.web....

2019-12-03 11:53:59 446

原创 Vue基础笔记

ES6三个定义变量命令var:在过去Js定义变量只有一个关键字:var,var有一个问题,就是定义的变量有时会莫名奇妙的成为全局变量 let:定义局部变量,只有在let命令所在的代码块内有效。 const:定义常量,不能被修改。ES6解构表达式定义的一个person对象:const person = { name:"jack", age:21, lan...

2019-10-25 21:11:21 182

原创 怎么注册拦截器

想要加载拦截器,就需要继承WebMvcConfigurerAdapterpublic class SpringMvcConfig extends WebMvcConfigurerAdapter { @Autowired private MyInterceptor1 myInterceptor1; @Override public void addInterce...

2019-10-24 20:21:17 461

原创 异常处理器

//加上该注解,交给IOC管理@Componentpublic class CustomExceptionResolver implements HandlerExceptionResolver { @Override public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse ...

2019-10-24 20:19:20 273

原创 Java实体类日期转换

class Person{ @DateTimeFormat(pattern = “yyyy-MM-dd”) //前台传数据到后台 @JsonFormat(pattern = “yyyy-MM-dd”,timezone="GMT+8")// 后台传数据到前台 private Date birthday; //--------------------------------get/set---...

2019-10-24 20:17:08 2213

原创 SpringMvc视图解析器配置

视图解析器配置@Configuration //声明配置类@ComponentScan("com.xxx.controller") //扫描包public class MVCConfiguration { @Bean public InternalResourceViewResolver viewResolver(){ InternalResourceViewResolver view...

2019-10-24 20:12:54 386

原创 WebApplicationInitializer配置

WebApplicationInitializer配置import org.springframework.context.ApplicationContext;import org.springframework.context.annotation.AnnotationConfigApplicationContext;import org.springframework.web.WebA...

2019-10-24 20:10:46 541

原创 Spring常用注解和总结笔记

常用注解:@Component 声明交给spring管理@Controller@Service@Repository@Configuration 声明配置类@ComponentScan 扫描@Resource 依赖注入@Value(“${xxx}”) 注入简单值@PropertySource(value = “classpath:db.properties”)加载propert...

2019-10-24 19:59:37 131

原创 清理maven下载失败的依赖

清理下载中断依赖的bat文件内容:set REPOSITORY_PATH=D:\Java\maven\maven_repositoryrem 正在搜索...for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (del /s /q %%i)rem 搜索完毕Pause...

2019-10-24 19:34:23 428

原创 maven仓库导入本地jar包

导入自定以jar包DOS命令: mvn install:install-file -Dfile=导入的jar包绝对路径 - DgroupId=组织名 -DartifactId=包名 -Dversion=版本 -Dpackaging=jar

2019-10-24 19:32:44 250

原创 数据库基础笔记

Maven:清理下载中断依赖的bat文件内容:set REPOSITORY_PATH=D:\Java\maven\maven_repositoryrem 正在搜索...for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (del /s /q %%i)rem 搜索完毕Pause导入自定...

2019-10-24 17:40:03 1575

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除