Я разрабатываю веб-приложение с использованием весенней загрузки, и я добавил контекстный путь в файл application.properties, указанный ниже, но когда я запускаю приложение, он не использует контекстный путь.
"Я добавил #Context Path server.port = 8085
server.servlet.context-path = / nvs-councellor в файле application.properties "
spring.mvc.view.prefix=/WEB-INF/JSP/
spring.mvc.view.suffix=.jsp
# create and drop tables and sequences, loads import.sql
spring.jpa.hibernate.ddl-auto=update
#Turn Statastics on
spring.jpa.properties.hibernate.generate_statistics=true
logging.level.org.hibernate.stat=debug
# Show all queries
spring.jpa.show-sql=true
logging.level.org.hibernate.type=trace
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
# PostgreSql settings
spring.datasource.url=jdbc:postgresql://10.226.1.10:5444/NVS_COUNSELLOR
spring.datasource.username=cefipra
spring.datasource.password=cefipra
spring.jpa.properties.hibernate.default_schema=nvs_counsellor
spring.datasource.driverClassName = org.postgresql.Driver
spring.jpa.database-platform = org.hibernate.dialect.PostgreSQLDialect
#Context Path
server.port=8085
server.servlet.context-path=/nvs-councellor
"Когда я запускаю приложение с URL http://localhost:8080/nvs-councellor/COUNSELLOR, оно показывает правильную страницу, но когда я выполняю другое действие, оно дает мне 404 со следующим URL http://localhost:8080/loginAction"