skip to Main Content

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

Redis – Should I always call close of jedis instance at the end of business logic?

I`m using jedis as the with spring boot for redis connection. The jedis pool is configured as follow: @Configuration @ConditionalOnClass(JedisPool.class) @EnableConfigurationProperties(JedisProperties.class) public class JedisAutoConfiguration { private JedisProperties jedisProperties; public JedisAutoConfiguration(JedisProperties jedisProperties) { this.jedisProperties = jedisProperties; } @Bean @ConditionalOnMissingBean(JedisPool.class) public JedisPool…

VIEW QUESTION
Back To Top
Search