springboot导入自定义启动器依赖后导包出现错误:Cannot resolve symbol... 的错误解决

解决方法1、把自定义的自动配置模块的resources目录下的application.properties文件删除2、resources目录下创建META-INF/spring.factories文件,并配置自动配置类的全限定路径org.springframework.boot.autoconfigure.EnableAutoConfiguration=\// 这是我自定义的自动配置类com.atguigu.starter.HelloServiceAutoConfiguration3、把spr
分类: 其他 发布时间: 02-27 22:06 阅读次数: 0

SpringBoot之如何在控制台打印出执行的sql语句

设置日志输出级别为 DEBUG方式一:application.yml## 设置debug可以打印Sql语句logging: level: com: company: cache: debug方式二:application.propertieslogging.level.com.company.cache=debug
分类: 其他 发布时间: 02-27 22:05 阅读次数: 0

Docker拉取镜像报错:Error response from daemon: Get https://index.docker.io/v1/search?q=redis&n=25

错误信息Error response from daemon: Get https://index.docker.io/v1/search?q=redis&n=25: dial tcp: lookup index.docker.io on [::1]:53: read udp [::1]:41878->[::1]:53: read: connection refused我的虚拟机VirtualBoxCentOS7Docker version 20.10.0解决方法配置阿里云容器镜
分类: 其他 发布时间: 02-27 22:05 阅读次数: 0

MySQL中ENGINE = InnoDB AUTO_INCREMENT = 200 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci的作用

CREATE TABLE `permission` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NULL DEFAULT NULL COMMENT '角色ID', `permission` varchar(63) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限', `add_time` datetime(0)
分类: 其他 发布时间: 02-27 22:05 阅读次数: 0

check the manual that corresponds to your MySQL server version for the right syntax to use near (0)

问题在使用Navicat从mysql数据库导出sql后,在其他数据库中执行该sql语句时,报了以下错误> 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(0) NULL DEFAULT NULL COMMENT '创建时间', update_by varcha
分类: 其他 发布时间: 02-27 22:05 阅读次数: 0

Consider defining a bean of type ‘com.nclg.mall.service.AdminService‘ in your configuration.

问题描述使用spring boot分模块开发时启动application出现错误Consider defining a bean of type 'com.nclg.mall.service.AdminService' in your configuration.原因spring boot默认只扫描application启动器所在的包及其子包,分模块的包不在同一个包下解决指定spring boot应该扫描哪些包@SpringBootApplication(scanBasePackages =
分类: 其他 发布时间: 02-27 22:04 阅读次数: 0

spring boot 2.x配置自定义拦截器会拦截静态资源解决方法

spring boot 2.x配置自定义拦截器会拦截静态资源解决方法 @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new InterceptorConfig()).addPathPatterns("/**"). excludePathPatterns("/","/index","/admin/user/
分类: 其他 发布时间: 02-27 22:04 阅读次数: 0

在layuiAdmin中使用layarea实现省市区三级联动

修改layui.js在layui.js中加入红色方框的代码将下载好的layarea.js放在modules目录下layarea.js下载地址和使用文档https://fly.layui.com/extend/layarea/layarea.js 省市区修改默认值详情请查看我的另一篇文章:...
分类: 其他 发布时间: 02-27 22:04 阅读次数: 0

layarea实现省市区三级联动修改默认值

问题描述我在使用layarea实现三级联动时,默认值总是北京市,我想要的默认值是 请选择,如果你想要默认的值是其他省市,可以通过data-value来指定,如以下代码:<div class="layui-form-item" id="area-picker"> <div class="layui-form-label">地区</div> <div class="layui-input-inline" style="width: 200px;"
分类: 其他 发布时间: 02-27 22:04 阅读次数: 0

layui的upload实现文件上传详解

前端代码<div class="layui-upload"> <button type="button" class="layui-btn" id="test1">上传图片</button> <div class="layui-upload-list"> <img class="layui-upload-img" id="demo1" width="200px" height="200px"> &
分类: 其他 发布时间: 02-27 22:03 阅读次数: 0

解决layui table表格图片显示不全的问题

问题描述解决方法利用表格动态渲染完成之后的回调修改单元格样式done:function (res,curr,count) { $('.layui-table-cell').css({'height':'auto'});}弊端当表格中所有的field没有sort排序功能时,是完全可以使用的,但是当表格中哪怕只有一个field具有排序功能,只要一点击排序,样式就会被破坏哦,亲们根据自己情况来吧,哪位大牛解决了这个弊端问题请教教我 (/哭脸/哭脸)...
分类: 其他 发布时间: 02-27 22:03 阅读次数: 0

layui表格数据显示小数点后两位

问题描述layui表格渲染后端传递过来的价格数据时,小数点后的00会被省略,如下图解决使用templat来返回转化格式后的数据{field: 'retailPrice', title: '零售价格',templet:function (data) { var price = parseFloat(data.retailPrice.toString()).toFixed(2); //设置小数点后个数 return price;}}效果图...
分类: 其他 发布时间: 02-27 22:03 阅读次数: 0

springboot关于使用layui文件上传后需要重启服务器才能访问图片的解决方法

解决/goodsImg/**是我的访问路径,D:\Development Tools\workspace_idea\mall\mall-api\src\main\resources\static\goodsImg\ 是我上传的图片的绝对地址。@Configurationpublic class WebMvcConfig extends WebMvcConfigurerAdapter { /** * 静态资源映射 * @param registry */
分类: 其他 发布时间: 02-27 22:03 阅读次数: 0

Mybatis在XML中写SQL比较运算符<=时报错解决方法

问题描述解决 <select id="selectStockWarning" resultType="java.lang.Integer"> select COUNT(id) from mall_stock where deleted = 0 and <![CDATA[`number` <= `warning`]]> </select>将表达式放在 <![CDATA[表达式]]>中...
分类: 其他 发布时间: 02-27 22:02 阅读次数: 0

BigDecimal除法报错:java.lang.ArithmeticException: Division undefined

解决指定除法保留的小数点位数以及四舍五入的方式如下是保留两位小数、向上取整的除法BigDecimal nowSales = new BigDecimal("23.01");BigDecimal preSales= new BigDecimal("15.07");BigDecimal sp = nowSales.divide(preSales,2, RoundingMode.HALF_UP);直接这么写是会报错的BigDecimal sp = nowSales.divide(preSales)
分类: 其他 发布时间: 02-27 22:02 阅读次数: 0

Spring initializr总是网络连接超时?赶紧来看看解决办法吧

安装阿里插件使用阿里代理创建项目的过程和使用Spring initializr一模一样,妈妈再也不用担心连接超时了。
分类: 其他 发布时间: 02-27 22:02 阅读次数: 0

docker启动mysql报错Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

1、问题描述Error response from daemon: driver failed programming external connectivity on endpoint mysql (11c5baee97c46d1f911f0ab48f5ee59b918dd27954102d40177997cba255962f): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use大
分类: 其他 发布时间: 02-27 22:02 阅读次数: 0

vmd

set t1 [atomselect top {type 1}] set t2 [atomselect top {type 2}] set t3 [atomselect top {type 3}] set t4 [atomselect top {type 4}] set t5 [atomselect top {type 5}]$t1 set name si $t2 set name...
分类: 其他 发布时间: 02-27 22:01 阅读次数: 0

二维

//-------------------------------------//this code is for testing# include <stdio.h># include <stdlib.h># include <math.h># include <iostream># include <fstream># ...
分类: 其他 发布时间: 02-27 22:01 阅读次数: 0

VMD将两个pdb文件和起来作为LAMMPS_data文件

在VMD学习过程中,记录下来自己的学习过程和心得,欢迎大神们多指导,欢迎交流!
分类: 其他 发布时间: 02-27 22:00 阅读次数: 0