- 博客(8)
- 收藏
- 关注
原创 springboot+shiro前后端分离遇到的问题以及解决方法
问题描述 将项目升级为前后端分离的过程中,关于shiro的权限控制遇到了一些问题,这里记录下问题以及解决方法; 使用springboot+shiro前后端分离后出现的跨域问题 在项目进行前后端分离后,前端发送给后端的请求总是报跨域问题 Access to XMLHttpRequest at ‘http://localhost:8081/******’ from origin ‘http://localhost:9090’ has been blocked by CORS policy: Request he
2021-04-17 11:35:05
988
原创 mybatis-plus条件构造器
if (StringUtils.isNotBlank(cfgSentence.getQueryText())) { wrapper.and(Wrapper -> Wrapper.like(CfgSentence::getIntentName, cfgSentence.getQueryText()) .or().like(CfgSentence::getStandardSentence, cfgSentence.getQueryText()).or().eq(CfgSentence::getDomain
2021-01-05 14:15:01
132
原创 关于mybatis插入$报错的解决方法
使用原始sql语句是能够正常插入数据库的 INSERT into cfg_dictionary (standard_words) VALUES (’$’) 但是使用mybatis进行插入就会报错 @Test void test() { CfgDictionary cfgDictionary = new CfgDictionary(); cfgDictionary.setStandardWords("$"); cfgDictionaryService.
2020-12-10 10:58:27
4288
原创 2020-11-12日用到的SQL
查询tag_key, tag_category_id重复的数据 select tag_key, tag_category_id, count(*) from tag group by tag_category_id, tag_key having count(*) > 1;
2020-11-12 15:26:46
141
原创 使用mybatis查出数据与mysql查出来的不一致(order by)_2020-10-23解决的BUG
使用mybatis查出数据与mysql查出来的不一致(order by)_2020-10-23解决的BUG 错误: xml拼接sql: select consequence.* from consequence <where> <include refid="getPageCondition"/> </where> <if test="page != null and page.orderBy != null and page.orderBy !=''"&g
2020-10-26 11:02:24
589
原创 简化上下文路径
自定义监听器 通过实现ServletContextListener接口,在application域创建时执行 package com.atguigu.atcrowdfunding.listener; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet...
2019-06-15 10:38:29
179
原创 学习记录-SSM框架_day02
SSM_day02环境搭建配置文件spring-context.xml配置文件springmvc-context.xml 环境搭建 配置文件spring-context.xml <!-- 扫描包,除了Controller--> <context:component-scan base-package="com.atguigu.atcrowdfunding.*"> <...
2019-06-14 14:37:29
250
原创 学习记录-SSM框架day01
SSM_day01环境搭建配置文件web.xml创建Spring框架的IOC容器 环境搭建 配置文件web.xml 创建Spring框架的IOC容器 <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:/spring/spri...
2019-06-13 20:58:17
252
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅