Spring批处理:在java配置文件中执行并行步骤(Spring Batch : parallel steps execution in java configuration file)
我正在尝试在java配置文件中进行并行步执行的示例应用程序,但是对于正在配置和初始化了多少文件(作业存储库,作业启动器和执行等)以及如何配置然后如何感到困惑? 简单地说,我需要一个示例应用程序来阐明并行执行作业中步骤的基础知识。
I am trying to make a sample application on parallel step execution in java configuration file but get perplexed that how many files(job repository,job launcher and execution etc.) are being configured and initialized and if configured then how? Simply I need a sample application to clarify the basics of parallel execution of steps in a job.
原文:https://stackoverflow.com/questions/37520159
最满意答案
Tigase没有经典角色。
如果您希望用户成为管理员,只需将其设置在/[tigase_server_location]/etc/init.properties中
--admins = username @ domain
现在,username @ domain将能够使用例如Tigase Web UI。
There are no classic roles in Tigase.
If you want a user to be admin, just set it in the /[tigase_server_location]/etc/init.properties
--admins = username@domain
Now username@domain will be able to e.g. use the Tigase Web UI.
相关问答
更多-
我也在同一个问题上抓住我的头,在添加第一个管理员用户后,将角色设置为root后,一切都会起作用。 use admin db.createUser( { user: "admin", pwd: "password", roles: [ { role: "root", db: "admin" } ] } ); exit; 有关完整的身份验证设置参考,请参阅我在互联网研究几个小时后编译的步骤 。 I was also scratching my head around the ...
-
您已为admin db创建了一个用户标识,因此要使用该用户标识,您必须连接到admin db,而不是otherTestDB。 otherDBRoles文档控制对作为该用户连接到admin db的其他dbs的访问。 因此,使用addUser指定它时,以下命令失败,因为用户是admin db而不是otherTestDB: $ mongo otherTestDB --username test --password password --eval 'printjson(db.c.findOne())' conne ...
-
如何使用Sonata Admin存储MongoDB \ ReferenceOne?(How to store MongoDB\ReferenceOne with Sonata Admin?)[2023-03-05]
要解决此问题,必须编辑sonata_type_model_list - 必须在configureFormFields添加sonata_type_model_list 。 /** * @param FormMapper $formMapper */ protected function configureFormFields(FormMapper $formMapper) { $formMapper ->add('title') ->add('user_id', ' ... -
我不知道Smack库,因此我不知道Presence.setProperty()方法的作用。 但是,如果它对存在数据包执行某些操作(向存在状态添加额外的有效负载),则不会将其保存到脱机消息存储中,因为....存在不存储在脱机消息存储中。 如果要修改OfflineMessages以使其存储的数据与现在存储的数据不同(如特定的存在数据包),则有一种方法:savePacketForOffLineUser,开头有一个大IF。 这是决定在离线存储中存储什么的地方。 但是,请注意不要存储所有在线状态,它会终止您的服务和数 ...
-
看起来您正尝试在mono数据库上分配userAdminAnyDatabase角色,而不是{{admin}}数据库。 “anyDatabase”角色仅适用于对admin数据库进行身份验证的用户。 有关更多信息,请参阅anyDatabase角色的文档 。 It appears that you're attempting to allocate the userAdminAnyDatabase role on the mono database, not the the {{admin}} database. ...
-
Tigase没有经典角色。 如果您希望用户成为管理员,只需将其设置在/[tigase_server_location]/etc/init.properties中 --admins = username @ domain 现在,username @ domain将能够使用例如Tigase Web UI。 There are no classic roles in Tigase. If you want a user to be admin, just set it in the /[tigase_server ...
-
如果您需要能够单击按钮来切换布局,那么您有两个选择: 使按钮成为当前页面的链接并向查询字符串添加内容,例如?mode=user 。 然后,您可以在视图(或_ViewStart.cshtml )中切换布局,如: Layout = "~/Views/Shared/_Layout.cshtml"; if (Request["mode"] == "user") { Layout = "~/Views/Shared/_UserLayout.cshtml"; } 让按钮转到URL或将表单发布到由操作提供的UR ...
-
如果为用户提供“readWriteAnyDatabase”角色,则不能排除admin DB。 因此,解决方案是为所有其他数据库使用“readWrite”角色,但随后用户无法创建新数据库。 您可以创建脚本(循环; forEach())列出所有数据库(不包括admin,local,config)并向用户授予“readWrite”权限。 If you give user "readWriteAnyDatabase" role, you cannot exclude admin DB. So, solution i ...
-
这些是Envoyer(由Laravel的创建者制作)在生产中部署应用程序的步骤 - 我在下面注释了它们: # Clear the old boostrap/cache/compiled.php php artisan clear-compiled # Recreate boostrap/cache/compiled.php php artisan optimize # Migrate any database changes php artisan migrate These are the step ...
-
创建用户 - MongoDB(Create user — MongoDB)[2022-09-16]
您必须使用适当的权限创建用户。 因此,您应该使用以下命令连接到您的mongo实例: mongo -u siteUserAdmin -p password 请参阅文档: http : //docs.mongodb.org/manual/tutorial/add-user-to-database/ You must create the user with the appropriates privileges. So you should connect to your mongo instance wit ...