skip to Main Content

Redis – Spring boot Cacheable annotation with JPA entity

I'm trying to caching jpa entity to redis through @Cacheable annotation. [RedisConfig.class] @Configuration public class RedisConfig { @Value("${spring.redis.host}") private String host; @Value("${spring.redis.port}") private int port; @Bean public RedisConnectionFactory redisConnectionFactory() { return new LettuceConnectionFactory(host, port); } @Bean public RedisTemplate<?, ?> redisTemplate()…

VIEW QUESTION

Getting same object from two views – SEO

I have tree models 'cinema', 'cinemaHall' and 'seo', where 'cinema' has relationship @OneToMany to 'cinemaHall'. Also, 'cinema' and 'cinemaHall' models have relationship @OneToOne to 'seo'. The problem is in model seo. After creating 'cinema' and 'cinemaHall' I'm getting, the same…

VIEW QUESTION

XMLHttpRequest blocked by CORS policy annotation @CrossOrigin – Nginx

Access to XMLHttpRequest at 'http://localhost:8080/api/auth/signup' from origin 'https://mysuite.ru' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request. http.cors().and() .exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() .authorizeRequests() .antMatchers("/admin").hasRole("ADMIN") .antMatchers("/").permitAll() .antMatchers("/favicon.ico").permitAll() .antMatchers("/static/**").permitAll() .antMatchers("/manifest.json").permitAll()…

VIEW QUESTION
Back To Top
Search