摘要: @Resource与@Autowired两个的作用是相同的,很多人因为个人习惯选择用的不同,但是他们两个本质上还有有一定的区别的,可以参考区别来选择具体用哪一个: @Autowired与@Resource都可以用来装配bean. 都可以写在字段上,或写在setter方法上 @Resource的作用相 阅读全文
posted @ 2021-04-22 16:02 y海涛 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <title>权限管理</title> 7 <#include 阅读全文
posted @ 2020-12-07 14:14 y海涛 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1 @RequestMapping("/reload") 2 @ResponseBody 3 public JsonResult reload(){ 4 JsonResult js = new JsonResult(); 5 try { 6 //获取数据库中的所有权限 7 List<String> 阅读全文
posted @ 2020-12-06 18:06 y海涛 阅读(707) 评论(0) 推荐(0) 编辑
摘要: public class MyFreeMarkerConfigurer extends FreeMarkerConfigurer { @Override public void afterPropertiesSet() throws IOException, TemplateException { 阅读全文
posted @ 2020-12-05 19:27 y海涛 阅读(224) 评论(0) 推荐(0) 编辑
摘要: @ControllerAdvice public class MyException { @ExceptionHandler(UnauthorizedException.class) public String UnauthorizedException(RuntimeException e, Ha 阅读全文
posted @ 2020-12-05 15:19 y海涛 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <title>潜在客户报表查询</title> 7 <!--f 阅读全文
posted @ 2020-12-05 15:15 y海涛 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1 public abstract class MessageUtil { 2 3 public static String changeMsg(CustomerReportQueryObject qo){ 4 String msg = null; 5 switch (qo.getGroupType 阅读全文
posted @ 2020-12-05 15:08 y海涛 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1 public abstract class DateUtil { 2 3 public static Date getEndDate(Date endDate) { 4 if (endDate == null){ 5 return null; 6 } 7 Calendar c = Calenda 阅读全文
posted @ 2020-12-05 15:07 y海涛 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1 package com.ygm.aa.page.qo; 2 3 import lombok.Getter; 4 import lombok.NoArgsConstructor; 5 import lombok.Setter; 6 7 @Getter@Setter@NoArgsConstructo 阅读全文
posted @ 2020-11-04 19:44 y海涛 阅读(95) 评论(0) 推荐(0) 编辑
摘要: package cn.wolfcode.emp.page; import java.util.Collections; import java.util.List; import javax.management.loading.PrivateClassLoader; import lombok.G 阅读全文
posted @ 2020-11-04 19:41 y海涛 阅读(318) 评论(0) 推荐(0) 编辑