springboot
linjianchao0316
这个作者很懒,什么都没留下…
展开
-
liunx或Windows下运行jar的命令
liunx或Windows下运行jar的命令:步骤一:切换至jar包的目录下步骤二:运行命令,java -jar xxx.jar --server.port=8090运行示例如下:原创 2019-06-16 23:02:50 · 402 阅读 · 0 评论 -
SpringBoot + Maven实现多环境动态切换yml配置及配置文件拆分
1.配置多环境yml在SpringBoot工程的src/main/resource目录下,创建application.yml文件。(默认应该是有个application.properties文件,也可以配置多环境。但这里我们用yml格式的配置文件)。接下来,做一个对于数据的简单配置。yml配置如下。application.yml# 默认使用配置spring: profiles:...转载 2019-07-24 14:06:15 · 570 阅读 · 0 评论 -
报错ERROR:Skipping MapperFactoryBean with name 'xxxMapper' and 'xxx.xxx.xxx.mapper.xxxxxMapper'
报错信息:Skipping MapperFactoryBean with name 'xxxMapper' and 'xxx.xxx.xxx.mapper.xxxxxMapper'nterface. Bean already defined with the same name!详细报错信息:2019-07-23 09:25:01.962 INFO 28608 --- [ resta...原创 2019-07-23 11:26:56 · 13662 阅读 · 3 评论 -
SpringBoot 2.0 报错: Failed to configure a DataSource: 'url' attribute is not specified and no embe...
报错信息:SpringBoot 2.0 报错: Failed to configure a DataSource: 'url' attribute is not specified and no embe...问题描述Spring Boot项目中含有Mybatis,打Jar包运行之后,报如下错误.***************************APPLICATION FAIL...原创 2019-07-23 11:31:01 · 150 阅读 · 0 评论 -
DruidFilterConfiguration.class], could not be registered. A bean with that name has already been....
报错信息:2019-07-23 11:29:09.457 INFO 39488 --- [ restartedMain] com.xxx.xxx.xxxApplication : Starting xxxApplication on IT-LAPTOP01 with PID 39488 (started by 50015573 in D:\Devops Project\x...原创 2019-07-23 11:43:06 · 2875 阅读 · 0 评论