
spring boot
caox_90
这个作者很懒,什么都没留下…
展开
-
Idea springboot classnotfound
在Intellij IDEA中所有 scope 为 provided 的依赖都是不会被加入到 classpath 中的,目前该bug尚未被修复((bug report)。如果你的web应用是部署到容器中的,那么这个bug不会影响使用,因为web应用中provided的依赖在容器运行时会被提供。如果你做spring Boot开发,有带provided的依赖时,直接在IntellIJ IDEA...原创 2019-11-13 14:29:15 · 395 阅读 · 0 评论 -
SpringBoot 声明式事务
springboot的事务也主要分为两大类,一是xml声明式事务,二是注解事务. 可以使用 @ImportResource("classpath:transaction.xml") 引入该xml的配置,xml的配置如下?12345678910111213141516171819202122232425262728<?xml version="1.0" encoding="UTF-8"?>...原创 2018-03-27 09:41:13 · 564 阅读 · 0 评论 -
Springboot Mybatis Alias
springboot 集成mybatis后配置mybatis.type-aliases-package=com.dc.health.model,com.dc.health.entity多个用,隔开原创 2018-06-22 19:17:12 · 2137 阅读 · 0 评论 -
springboot +thymeleaf集成ueditor
环境springboot1.5.8 、ueditor 1.4.3、thymeleaf下载jsp版本ueditor将ueditor后台源码拷贝到src/mian/java目录下,修改文件 ConfigManagerprivate void initEnv () throws FileNotFoundException, IOException { File...原创 2018-12-14 14:13:50 · 608 阅读 · 0 评论 -
Springboot Jsp 打包无法访问
Jsp项目打包后访问不到页面的问题需要在build中加入<resources> <resource> <directory>src/main/webapp</directory> <targetPath>META-INF/resources</targetPath> ...原创 2019-03-22 16:58:06 · 615 阅读 · 0 评论 -
Springboot 插入mysql数据包含表情报错Incorrect string value: '\xF0\x9F\x98\x84\xF0\x9F
mysql数据修改 检查数据库编码是不是uft8mb4 检查表内的要存储的字段是不是uft8mb4 手动sql插入条带表情的数据是不是成功。 修改springboot配置文件 如果是用的默认配置的话,那么需要在applciation.properties中增加如下: spring.datasource.tomcat.init-s-q-l=SET NAMES ut...原创 2019-08-30 14:33:26 · 2070 阅读 · 0 评论