Rest 以匿名用户身份提交表单
案例: 匿名用户访问网站,填写表单并希望提交表单 正如您所看到的,它与实体的创建者没有区别,就好像我已登录一样Rest 以匿名用户身份提交表单,rest,jhipster,Rest,Jhipster,案例: 匿名用户访问网站,填写表单并希望提交表单 正如您所看到的,它与实体的创建者没有区别,就好像我已登录一样 // Enlist a volunteer $scope.enlist = function () { $scope.isSaving = true; myEntity.save($scope.volunteer, onSaveSuccess, onSaveError); <-- same method
// Enlist a volunteer
$scope.enlist = function () {
$scope.isSaving = true;
myEntity.save($scope.volunteer, onSaveSuccess, onSaveError); <-- same method
};
//招募一名志愿者
$scope.inclist=函数(){
$scope.isSaving=true;
save($scope.志愿者,onSaveSuccess,onSaveError);查看SecurityConfiguration类并取消对实体URL的保护
.antMatchers("/api/myentity").permitAll()
已经尝试过了,但是Springboot保留了它的设置。请注意,antMatchers的顺序很重要