解决Spring boot 遇到的问题
Sts maven install:
1.“
Spring Boot - Cannot determine embedded database driver class for database type NONE
”
,参见:https://stackoverflow.com/questions/24074749/spring-boot-cannot-determine-embedded-database-driver-class-for-database-type
From the Spring manual (http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-sql.html#boot-features-embedded-database-support):
Spring Boot can auto-configure embedded H2, HSQL and Derby databases. You don’t need to provide any connection URLs, simply include a build dependency to the embedded database that you want to use.
For example, typical POM dependencies would be:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.hsqldb</groupId> <artifactId>hsqldb</artifactId> <scope>runtime</scope> </dependency>
For me leaving out the spring-boot-starter-data-jpa dependency and just using the spring-boot-starter-jdbc dependency worked like a charm, as long as I had h2 (or hsqldb) included as dependencies.
2.
,
参见
https://stackoverflow.com/questions/28192761/spring-maven-clean-error-the-requested-profile-pom-xml-could-not-be-activate
有可能是java版本问题,jdk1.8
3.Maven 的问题
参见
https://www.geek-share.com/detail/2599052241.html
转载于:https://www.cnblogs.com/swottt/p/6912991.html
- 点赞
- 收藏
- 分享
- 文章举报
- spring boot集成mybatis-plus遇到的问题及解决
- 在使用 Spring Boot 和 MyBatis 动态切换数据源时遇到的问题以及解决方法
- 解决spring boot 打war包中遇到的问题
- 在使用 Spring Boot 和 MyBatis 动态切换数据源时遇到的问题以及解决方法
- Fedora22远程连接win8.1一路遇到的问题与解决方法
- sqlite遇到database is locked问题的完美解决
- 配置WebSite的IIS时遇到的问题与解决方法
- Maven与Eclipse使用中遇到的问题解决之道
- Red5流化MP3遇到问题解决办法
- 部署测试环境时遇到的问题及解决办法
- stm32调试遇到问题及解决
- 安装SQL Server 2008和将2008升级到2008 R2遇到的问题及解决办法
- 集成GreenDao3,遇到PRIMARY KEY must be unique的问题解决
- ubuntu12 初始化包信息时遇到无法解决的问题
- 重装SQL Server 2005遇到问题“性能监视器计数要求(错误)”的解决方法
- 对于自己遇到的问题汇总及解决的方法描述
- 项目遇到的小问题以及解决方法
- 真机运行时遇到的问题及解决办法
- LoadRunner11压力测试时遇到问题及解决办法
- PHP5 在调用 JAVA WebService 时遇到的各种问题及解决方法(二)