I have local instance of keylcoak and I am trying to connect my flutter app to it and for that I am following the this tutorial but I got stuck on this redirect_uri issue.
In android's build.gradle I have added the following piece to default config:
applicationId = 'com.my.example_app'
manifestPlaceholders = [
'appAuthRedirectScheme': 'com.my.example_app'
]
Run Code Online (Sandbox Code Playgroud)
In the code I have:
const REDIRECT_URI = 'com.my.example_app://login-callback';
//some code in between
final AuthorizationTokenRequest req = AuthorizationTokenRequest(
CLIENT_ID,
REDIRECT_URI,
allowInsecureConnections: true,
issuer: ISSUER,
discoveryUrl: …Run Code Online (Sandbox Code Playgroud) 我陷入尝试从数据库添加身份验证的过程。
这是错误日志:
2015年12月23日08:24:32.819严重[localhost-startStop-1] org.springframework.web.context.ContextLoader.initWebApplicationContext上下文初始化失败org.springframework.beans.factory.BeanCreationException:创建名称为'securityConfig'的bean时出错:注入自动装配依赖项失败;嵌套的异常是org.springframework.beans.factory.BeanCreationException:无法自动连线字段:org.springframework.security.core.userdetails.UserDetailsService kamienica.configuration.SecurityConfig.userDetailsService; 嵌套的异常是org.springframework.beans.factory.NoSuchBeanDefinitionException:没有找到类型为[org.springframework.security.core.userdetails.UserDetailsService]的合格Bean作为依赖项:至少应有1个有资格作为此依赖项的自动装配候选的bean。org.apache.catalina.startup.HostConfig $ DeployDescriptor.run(HostConfig.java:1750)上的catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586)在java.util.concurrent.Executors $ RunnableAdapter.call(未知源) ),位于java.util.concurrent.FutureTask.run(未知源)处,位于java.util.concurrent.ThreadPoolExecutor.runWorker(未知源),位于java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知源),位于java.lang。 Thread.run(未知来源)原因:org.springframework.beans.factory.BeanCreationException:无法自动连线字段:org.springframework.security.core.userdetails.UserDetailsService kamienica.configuration.SecurityConfig.userDetailsService; 嵌套的异常是org.springframework.beans.factory.NoSuchBeanDefinitionException:没有任何类型为[org。已找到依赖项的springframework.security.core.userdetails.UserDetailsService]:期望至少有1个bean符合此依赖项的自动装配候选条件。依赖项注释:org.springframework.beans.factory.annotation上的{@ org.springframework.beans.factory.annotation.Autowired(required = true),@ org.springframework.beans.factory.annotation.Qualifier(value = customUserDetailsService)} .org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)上的org.springframework.beans.factory.Annotation.ProwiredProcess。 .java:289)...还有26个原因:org.springframework。beans.factory.NoSuchBeanDefinitionException:找不到依赖项类型为[org.springframework.security.core.userdetails.UserDetailsService]的合格Bean:至少应有1个符合此依赖项自动候选条件的bean。依赖项注释:org.springframework.beans.factory.support上的{@ org.springframework.beans.factory.annotation.Autowired(required = true),@ org.springframework.beans.factory.annotation.Qualifier(value = customUserDetailsService)} org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:963)的org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBean。
和我的配置类:
1)AppConfig。
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "kamienica")
public class AppConfig {
@Bean
public ViewResolver viewResolver() {
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setViewClass(JstlView.class);
viewResolver.setPrefix("/WEB-INF/views/");
viewResolver.setSuffix(".jsp");
viewResolver.setContentType("UTF-8");
return viewResolver;
}
@Bean
public MessageSource messageSource() {
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
messageSource.setBasename("messages");
return messageSource;
}
}
Run Code Online (Sandbox Code Playgroud)
2)AppInitializer:
public class AppInitializer implements WebApplicationInitializer …Run Code Online (Sandbox Code Playgroud) 我从后端收到一组对象,其中包含文本作为字段之一。我希望能够编辑该文本。
到目前为止我有这样的事情:
<div *ngFor="let speech of speeches; index as i">
<div class="card">
<div class="card-header">
<div class="row">
//some other input fields
<div class="card-body">
<ckeditor [(ngModel)]=speech.content
[editor]="editor"
name={{i}}
required
[config]="ckeConfig"
debounce="500"
(change)="onChange($event)">
</ckeditor>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
当演讲数组达到 30-40 左右时,它可以正常工作,但对于更大的数组,它甚至会导致浏览器崩溃。
有人遇到过这个问题并解决了吗?
我已经用 MySQL 为我的 SpringBoot 应用程序编写了 docker compose。当我最终运行 docker-compose up 时,我收到一个错误:
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80) ~[spring-jdbc-4.3.17.RELEASE.jar!/:4.3.17.RELEASE]
at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:325) ~[spring-jdbc-4.3.17.RELEASE.jar!/:4.3.17.RELEASE]
... 69 common frames omitted
Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:172) ~[mysql-connector-java-8.0.11.jar!/:8.0.11]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) ~[mysql-connector-java-8.0.11.jar!/:8.0.11]
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:862) ~[mysql-connector-java-8.0.11.jar!/:8.0.11] …Run Code Online (Sandbox Code Playgroud)