![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发配置
小黑小黑白
个人主页 : https://www.bhy702.com
个人博客 :https://br-bai.github.io
展开
-
dynamic-datasource + druid 多数据源配置、数据源切换以及事务中切换失败的使用注意
配置信息:spring: autoconfigure: #自动化配置 例外处理 exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure datasource: type: com.alibaba.druid.pool.DruidDataSource druid: stat-view-servlet: enabled: true原创 2020-10-30 11:08:16 · 5365 阅读 · 1 评论 -
Swagger集成及常用注解使用场景
环境集成先引入相关依赖<!-- swagger --><dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version&...原创 2019-10-24 17:47:41 · 741 阅读 · 0 评论 -
修改idea中JDK的版本
修改idea中jdk版本配置:File->Project Structure:->Project->Modules->SDKs2. File-Settings:->Importing->Runner【注意】如果以前在Maven的setting文件中配置指定了JDK版本,则还需修改setting文件的如下参数设置...原创 2018-11-24 17:57:16 · 2814 阅读 · 0 评论 -
项目部署后字体图标等font文件无法正常加载 Failed to decode downloaded font: <URL>
浏览器报错信息如下:Failed to decode downloaded font: <URL>OTS parsing error: incorrect file size in WOFF headerOTS parsing error: incorrect entrySelector for table directory展示界面如下:原因是maven的filt...原创 2019-06-10 13:14:45 · 6277 阅读 · 1 评论 -
spring boot项目部署Linux时tomcat启动失败,打war包后不存在resources下的资源文件
spring boot项目部署Linux时,运行tomcat启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Error starting ApplicationContext. To display the ...原创 2019-06-10 11:44:52 · 1281 阅读 · 0 评论 -
linux系统上部署springboot项目,可直接通过ip访问
1.修改打包方式为war&lt;packaging&gt;war&lt;/packaging&gt;2.设置打包后的包名,添加springboot的maven插件&lt;build&gt; &lt;finalName&gt;bhy702-website&lt;/finalName&gt; &lt;plu原创 2019-01-17 15:54:53 · 5986 阅读 · 1 评论 -
Maven项目修改jdk版本后运行或执行install与package报错
报错信息:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project jsz-common: Fatal error compiling: 无效的目标发行版: 10 -&amp;gt; [Help 1]原因是Maven的setting配置文...原创 2018-11-24 18:07:48 · 840 阅读 · 0 评论