oracle关键字
level,this,is
MySql
Failed to determine a suitable driver class
解决方式1:
pom文件的打包方式如果未pom,是会报这个错的,
改为
<packaging>jar</packaging>
或者删掉都可以
JAVA
while scanning for the next tokenfound character ‘@’ that cannot start any token. (Do not use @ for indentation)
1.问题:缺少依赖
<--! 引入依赖 -->
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</dependency>
2.问题:没有扫描到resources
<!--build节点增加内容-->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<!--开启过滤,用指定的参数替换directory下的文件中的参数-->
<filtering>true</filtering>
</resource>
</resources>
</build>
ClassNotFoundException: ConfigurationPropertiesBean
spring-boot版本与spring-cloud版本不匹配
更换成相互对应的版本即可
NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.core.convert.ConversionService’ available
原因:使用gateway网关的时候spring-webmvc与spring-boot-starter-web冲突
解决:
注释或屏蔽掉spring-boot-starter-web依赖
java.io.InvalidClassException:stream classdesc serialVersionUID,local class serialVersionUID
原因:调用远程数据时,远程的序列化id与本地的序列化id不匹配
解决:将远程的序列化id改为本地序列化id,或将本地的改成远程序列化id
org.yaml.snakeyaml.LoaderOptions.setMaxAliasesForCollections(I)V
原因没有引入snakeyaml依赖或版本不对
解决:
引入依赖
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.26</version>
</dependency>
Oauth2.0
Unauthorized_grant_type:_implicit
该客户端中没有配置implicit授权类型
解决:
在authorizedGrantTypes中加入implicit即可
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.inMemory()
.withClient("app")//客户端标识
.secret(passwordEncoder.encode("secret"))//客户端安全码密钥
.authorizedGrantTypes("password","authorization_code","client_credentials","implicit","refresh_token")//授权类型
.scopes("all")//访问范围
.autoApprove(false)//是否跳转到授权
.authorities("res")//权限
.redirectUris("http://www.baidu.com");//回调地址http:
// clients.withClientDetails()
}