spring boot
jiahuiling6878
这个作者很懒,什么都没留下…
展开
-
nacos 服务注册
nacos 服务注册在这里插入代码片spring: application: name: service cloud: nacos: discovery: username: nacos password: nacos server-addr: 10.19.12.224:8848 namespace: 68da05aa-8094-4993-8d02-6b4add...原创 2021-11-16 17:21:42 · 307 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
在启动类中添加@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)原创 2020-08-22 15:44:26 · 118 阅读 · 0 评论 -
Implementation of JAXB-API has not been found on module path or classpath
解决方法在pom里添加 <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0-b170201.1204</version> </dependency>原创 2020-08-22 15:41:58 · 17691 阅读 · 0 评论 -
jpa show-sql 的配置
在application.yml中添加:jpa:show-sql: trueproperties:hibernate:format_sql: true #格式化SQL,如果不加,SQL输出不换行,不方便查看在application.properties中添加:spring.jpa.show-sql=truespring.jpa.properties.hibernate.format_sql=true...转载 2020-07-02 14:30:59 · 10909 阅读 · 2 评论