spring
文章平均质量分 61
spring 是一个非常优秀的框架,对于java web开发的人员应该是非常熟悉spring web,spring mvc,spring ioc,srping annotation,spring boot,等
Alex_designer
生活如此多娇!
展开
-
BeanFactory not initialized or already closed - call ‘refresh‘ before accessing beans via the Applic
spring启动报错:BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic原创 2022-07-23 08:30:07 · 1135 阅读 · 1 评论 -
nested exception is java.lang.IllegalArgumentException: dataSource or dataSourceClassName or jdbcUrl
ror starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2022-01-23 21:35:05.177 ERROR 2404 --- [ main] o.s.boot.SpringApplication : Application run failedorg.springframework....原创 2022-01-23 21:56:26 · 5564 阅读 · 0 评论 -
springboot打包排除掉resources下的html,css,js,jpg图片等资源文件
用eclipse做springboot项目时,由于生产上是动静态分离配置,jar文件中不需要html,css,js等静态文件解决办法是:在pom.xml文件中加入配置指定排除的部分 <resources> <resource> <directory>src/main/resources</directory> <excludes>原创 2021-07-16 17:48:34 · 2031 阅读 · 0 评论 -
Project build error: Non-resolvable parent POM: Failure to find org.springframework.boot:spring-boot
springboot Non-resolvable parent POMDescription Resource Path Location Type Project build error: Non-resolvable原创 2021-03-18 11:10:02 · 1990 阅读 · 0 评论 -
eclipse给spring boot打包发布
写一个简单的spring boot demo准备打包发布工具eclipsespring boot 2.4.1jdk 1.8clean package -Dmaven.test.skip=true在项目的 demo\target 目录就可以打开demo.jar包在本地cmd中 java -jar demo.jar就可以正常访问下次打包,就不用再配置了,直接...原创 2020-12-21 11:59:12 · 266 阅读 · 0 评论 -
spring boot项目中同时存在application.properties和application.yml文件时,两个文件都有效
spring boot项目中同时存在application.properties和application.yml文件时,两个文件都有效,但是application.properties的优先级会比application.yml高server: port: 8086spring: datasource: name: test url: jdbc:mysql://192.168.1.112:3306/test username: r...原创 2020-12-16 16:17:34 · 1507 阅读 · 2 评论 -
eclipse快速创建springboot项目时常见问题与解决
Window10环境是JDK1.8,打开https://start.spring.io/创建下载获取 boot.zip解压后,打开eclipse软件项目POM文件报UnKnown的解决方案<properties> <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version></properties>首次进入不知道密码,可以在application....原创 2020-12-16 14:57:29 · 611 阅读 · 0 评论