Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Intranet 模板(集成身份验证)创建了一个 MVC 项目
现在我意识到我真的需要 Internet 模板。(表单认证)
有没有一种简单的方法来改变我的项目?
一个神奇的Nuget?!?
首先更改您的 web.config 以使用表单身份验证。
<authentication mode="Forms"> <forms loginUrl="~/Account/SignIn" requireSSL="true" protection="All" timeout="2880" /> </authentication>
至于控制器逻辑,我会创建另一个项目,然后将视图和控制器代码从那里复制到您当前的项目中。
我可能在这里遗漏了一些东西,但我似乎找不到任何关于使用 Spring Integration JPA Outbound Channel Adapter 持久化实体列表的文档。我有一个非常简单的场景,应该轮询数据库并将新数据复制到另一个数据库。因此:
<int-jpa:inbound-channel-adapter channel="myC