- 博客(3)
- 收藏
- 关注
原创 springboot 显示不出样式(以CSS为例)
一个低级错误…今天将前台那边写好的index放在项目中发现run后访问不到样式,只有thymeleaf引擎的html静态资源找到以下解决方案:没有设置静态资源访问路径写个配置类在核心配置文件中设置路径设置了扫描路径,可能在html中link标签的属性没有添加没事就清清memory咯~~~如果单纯是访问不到html资源(400),可能需要在文件中配置映射文件路径感谢...
2022-06-05 14:45:24 971
原创 解决:invalid bound statement (not found)
Mybatis:invalid bound statement (not found)解决办法在springboot框架web项目工程起步的时候,往往用最简单的方式:mybatis逆向工程,配置GeneratorMapper.xml,连接数据库从数据库中将数据自动装配好pojo到工程中。但是当测试的时候总会显500?!WTF各种调试,各种找Bug,网上大多数人说是mapper配置文件路径问题,但我的没错啊springboot启动类中也注解了@MapperScan(basePackages =
2022-05-24 08:38:50 337
原创 解决springboot2.x报错:io.lettuce.core.RedisAsyncCommandsImpl cannot be cast to redis.clients.jedis.Jedis
解决springboot2报错:io.lettuce.core.RedisAsyncCommandsImpl cannot be cast to redis.clients.jedis.Jedis的问题源代码: redisTemplate.opsForValue().set("int_key", "1"); stringRedisTemplate.opsForValue().set("int", "1"); //+1运算 stringRedisTempl
2022-05-22 14:54:27 2384
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人