grails - Grails 3.3.10 and strange behavior in the URLs
问题描述
I'm developing an application using Grails 3.3.10
using Spring security plugin
but I'm getting very weird behavior, when I run the application using -https
for instance I finished editing the Profile
in the edit.gsp
here its URL https://localhost:8443/profile/edit/1
and I press Update
so it will suppose to take me to the index.gsp
but the URL I get is http://localhost:8080//profile/index
as you can see the URL isn't https
and there is extra /
by the way this is happing in a lot of the views.
What is the reason for this behavior
解决方案
我弄清楚我在配置文件中发现这种奇怪行为的原因是什么application.yml
,该属性grails.serverURL
配置了两次,所以我评论了它们,一切正常
推荐阅读
- xml - XML Grouping 在表中添加数据
- tomcat - Fluentbit 与 Tomcat 日志
- salesforce - Lightning Web 组件中的日期选择器输入
- spring - 在@query Jparepository 中访问 keycloak 主体
- javascript - 我正在尝试在 React.js 网站中添加路由,但它不起作用
- json - 使用 AJAX (JSONConvert Serialize) 的 MVC 日期参数始终为空
- reactjs - 使用 auth0-react 库的访问令牌似乎格式不正确
- r - 根据其他列中的唯一值将 NA 值替换为字符
- amazon-web-services - CloudWatch 警报根据历史数据恢复正常
- java - 是否可以在方法参数上应用手动实例化的 Java 注释?