自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 972

原创 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 129

原创 关于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 4258

原创 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 138

原创 使用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 573

原创 简化上下文路径

自定义监听器通过实现ServletContextListener接口,在application域创建时执行package com.atguigu.atcrowdfunding.listener;import javax.servlet.ServletContext;import javax.servlet.ServletContextEvent;import javax.servlet...

2019-06-15 10:38:29 169

原创 学习记录-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 241

原创 学习记录-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 246

空空如也

空空如也

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

TA关注的人

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