Size: a a a

Spring Framework and more

2020 June 01

IV

Ilja V in Spring Framework and more
Spring security не может его подсовывать?
источник

ND

Nikita Danilov in Spring Framework and more
Ilja V
это стандартная проблема веб + спринг секюрити. если делаешь конфигурацию с джава, то используй antMatcher для всех ресурсов, которые должны подгружаться открыто. лучше это сделать на начальном этапе - классифицировать открытые ресурсы. и сразу их добавить в конфигурацию спринг секюрити. а то потом может что-то не подгружаться на страницах. если используешь спринг + ангуляр или с другим фреймворком, не забудь добавить все сервисные файлы, иначе, не будет запускаться или еще хуже не работать часть функциональности.

@Override
protected void configure(HttpSecurity http) throws Exception {
   ...
   .antMatchers("/public/**").permitAll()
   ...
}
источник

IV

Ilja V in Spring Framework and more
Спасибо за инфу, попробую
источник

LL

Lionel Lawrence in Spring Framework and more
Hello people. I am a begineer in spring framework and java. I am taking a course and I am stuck with a problem.
I will share the log file and could someone point out what I need to do. I just need some pointers
источник

LL

Lionel Lawrence in Spring Framework and more
источник

VS

Vitaly Sirotkin in Spring Framework and more
Lionel Lawrence
Hello people. I am a begineer in spring framework and java. I am taking a course and I am stuck with a problem.
I will share the log file and could someone point out what I need to do. I just need some pointers
what's your java version?
источник

LL

Lionel Lawrence in Spring Framework and more
14.0.1
источник

VS

Vitaly Sirotkin in Spring Framework and more
seams like you've got some fresh java version which doesn't have any jaxb bundled
источник

VS

Vitaly Sirotkin in Spring Framework and more
you need to add jaxb api to your classpath
источник

LL

Lionel Lawrence in Spring Framework and more
I thought it was due to some dependency which is missing
источник

VS

Vitaly Sirotkin in Spring Framework and more
you are right)
источник

LL

Lionel Lawrence in Spring Framework and more
Vitaly Sirotkin
you need to add jaxb api to your classpath
Okay I will search on that
источник

VS

Vitaly Sirotkin in Spring Framework and more
but i dunno why doesn't jpa api fetch jaxb as transitive dependency
источник

LL

Lionel Lawrence in Spring Framework and more
Vitaly Sirotkin
you are right)
So it is not related to some bean instantiation which is not done?
источник

VS

Vitaly Sirotkin in Spring Framework and more
Lionel Lawrence
So it is not related to some bean instantiation which is not done?
bean instantiation doesn't success coz of dependency missing
источник

LL

Lionel Lawrence in Spring Framework and more
everywhere it is showing that error while instantiating the bean object
источник

VS

Vitaly Sirotkin in Spring Framework and more
yep, but if you scroll till the end - you will see the root cause of your exception
источник

LL

Lionel Lawrence in Spring Framework and more
Okay Vitaly. I will check and come back
источник

VS

Vitaly Sirotkin in Spring Framework and more
gl)
источник

LL

Lionel Lawrence in Spring Framework and more
I included the jabx dependency in the maven project and the error is resolved.  There are java related exceptions being thrown. Shall I downgrade the java version to 10/11?
источник