Spring Boot Application in default package

简介: Spring Boot Application in default package

本文讲述了作者在编程时遇到的一个错误,问题出在使用Application写的引导类,必须确保该类文件与相关代码在同一文件夹下,否则会导致编译错误。

摘要由CSDN通过智能技术生成

1、今天在敲代码爆了一个错误:

2、这里出现问题,导致的原因,利用Application写的引导类,必须在同一个文件夹下,才不会报错


相关文章
|
22天前
|
缓存 Java Maven
Spring Boot 启动错误:To display the conditions report re-run your application with ‘debug‘ enable —【已解决】
Spring Boot 启动错误:To display the conditions report re-run your application with ‘debug‘ enable —【已解决】
95 1
|
2月前
|
Java Linux Windows
windows解决SpringBoot启动时:APPLICATION FAILED TO START
windows解决SpringBoot启动时:APPLICATION FAILED TO START
55 0
|
9月前
|
Java Spring
Command line is too long. Shorten command line for Application or also for Spring Boot default confi
Command line is too long. Shorten command line for Application or also for Spring Boot default confi
18 1
|
8月前
|
Java Spring
Spring Boot 启动报错解决:No active profile set, falling back to default profiles: default
Spring Boot 启动报错解决:No active profile set, falling back to default profiles: default
149 0
|
9月前
|
Java
【异常】SpringBoot报错Command line is too long.Shorten command line for Application or also for Applicatio
【异常】SpringBoot报错Command line is too long.Shorten command line for Application or also for Applicatio
92 0
|
Java Linux Spring
每日一博 - Spring Boot Application as a Service
每日一博 - Spring Boot Application as a Service
79 0
|
4天前
|
Java 开发者 Spring
深入理解Spring Boot中的自动配置原理
深入理解Spring Boot中的自动配置原理
|
5天前
|
前端开发 Java 微服务
Spring Boot与微前端架构的集成开发
Spring Boot与微前端架构的集成开发
|
11天前
|
Java
springboot自定义拦截器,校验token
springboot自定义拦截器,校验token
24 6
|
8天前
|
NoSQL 搜索推荐 Java
使用Spring Boot实现与Neo4j图数据库的集成
使用Spring Boot实现与Neo4j图数据库的集成