I'm facing an issue with my Spring-MVC application where the CSS and JS files are not loading even though they are correctly called. Can anyone help me figure out what I'm doing wrong?
Resources folder:
Project --> webapp --> resources --> css, js directories
Config:
root-context.xml:
<context:component-scan base-package="com.APP">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
<!-- Beans configuration for dataSource, SessionFactory, and other settings -->
</beans:beans>
servlet-context.xml:
<security:global-method-security
secured-annotations="enabled"
jsr250-annotations="disabled"
pre-post-annotations="enabled"/>
<!-- Configuration for component scan, view resolver, default servlet handler, etc. -->
</beans:beans>
security-applicationContext.xml:
<security:http pattern="/resources/**" security="none"/>
<!-- Security configurations for login, logout, session management, etc. -->
</beans>
Screenshot:
https://i.sstatic.net/990TE.png
JSP:
HTML and form elements for login and registration functionality