
java
wangdaoyin2010
这个作者很懒,什么都没留下…
展开
-
Shrio中添加自定义认证过滤器
1、添加自定义认证过滤器类创建一个类继承与AuthenticatingFilter2、在Shrio配置中配置ShiroFilterFactoryBean,在配置ShiroFilterFactoryBean的时候设置setFilters为过滤器。注意:添加的自定义过滤器一定不能注入成bean,不然可能会发生No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.Thre原创 2022-03-29 21:52:58 · 742 阅读 · 0 评论 -
OpenFeign中动态URl
11、依赖引入 <!--客户端依赖--> <dependencies> <!--由于使用了lombok减缓模型对象的编写,所以需要添加该依赖--> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> .原创 2021-08-18 15:28:13 · 5060 阅读 · 1 评论 -
Spring boot中yaml配置文件日期localDate和Date配置
java类属性Date date;Date dateTime;LocalDate localDate;yml中对应配置(需要为如下格式,将/换成-会报错)date: "2018/11/20"dateTime: "2018/11/21 01:01:01"localDate: "2018/11/22"原创 2021-05-09 14:55:13 · 5426 阅读 · 3 评论 -
SpringBoot thymeleaf 热部署
一、网上热部署基本步骤1.1 “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically1.2 组合键:Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running”。1.3 修改项目运行配置,如下红框做完上面步骤,修改resour.原创 2021-03-05 18:47:47 · 539 阅读 · 0 评论 -
linux 上使用POI将Word转PDF中文字体显示不出来问题解决
1、Word转换PDF成功但是中文显示不出都是因为字体的问题下面的方法简单粗暴,但是解决了我的问题,a、将C:\Windows\Fonts 所有字体全部压缩成zip包(allfont.zip)b、将压缩包拷贝到linux服务器上的 /usr/share/fonts目录c、unzipallfont.zip 解压文件d、使用命令刷新到缓存中:执行命令:fc-cache -fv...原创 2020-12-04 15:48:09 · 4705 阅读 · 5 评论 -
FeignClient注解及参数
一、FeignClient注解 FeignClient注解被@Target(ElementType.TYPE)修饰,表示FeignClient注解的作用目标在接口上 1 2 3 4 5 @FeignClient(name ="github-client", url ="https://api.github.com", configuration = GitHubExampleConfig.class) publicinter...转载 2020-11-16 10:05:27 · 531 阅读 · 0 评论 -
Mybatis在LInux运行正常,在Windows运行中报错,mapper-locations配置问题
Mybatis在LInux运行正常,在Windows运行中报错错误:Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.jjsj.auth.dao.AccountMapper.BaseResultMap,其中BaseResultMap为任何ResultMap的定义或者是SQL语句定义都会报这样的错误;问题分析:mapper-locations配置路径问题。..原创 2020-11-10 17:48:45 · 549 阅读 · 0 评论 -
IntelliJ IDEA 2019.3 使用
参考地址:https://www.cnblogs.com/leton/p/12037696.html转载 2020-03-03 20:14:21 · 538 阅读 · 0 评论 -
hibernate 中使用UUID作为主键 保存数据问题
hibernate 中使用UUID做主键的时候需要在实体类上添加如下注解@Id@Column(name = "id")@GeneratedValue(generator = "system-uuid" )@GenericGenerator(name = "system-uuid",strategy = "uuid")然后再server层添加事务控制的注解@Transactio...原创 2019-11-18 14:29:06 · 600 阅读 · 0 评论