如何在我的项目中实现Grairo的Shiro安全性(how to implement Shiro Security of Grails in my Project)
我是Grails的新手并使用了一些Shiro安全性。 我创建了一个带登录页面的小站点,如果登录成功,它会将我重定向到另一个登录页面。
现在我想实施Shiro Security。 我在新的Grails项目上运行了该插件和Shiro的快速启动应用程序。
我想要实现的是如何使用快速启动文件和代码在我自己的页面上实现我的安全性。 请指导。 一点。 我应该从快速入门使用哪些文件以及我应该做出哪些改变。 ?
等待一些积极的回应:)
i m new to Grails and using some Shiro security. I have made a little site with login page and if login successful it redirects me to another loggedin page.
now i want to implement Shiro Security. I have run that plugin and quick start app of Shiro on new Grails Project.
what i want to achieve is that how can i implement my security on my own pages using the Quick Start Files and code. Please guide. a little. which files should i use from that quick start and what changing should i made. ?
waiting for some positive response :)
原文:https://stackoverflow.com/questions/5815401
最满意答案
您已经使用了
fixed
版面width
和height
的按钮,并且还使用了fixed
版面margins
。 固定值导致问题,因为Nexus Five
和Nexus One
方案不同。解:
您可以使用属性为
android:weightSum
LinearLayout
,并使用android:layout_weight
作为按钮而不是固定的width
和height
。You have used
fixed
layoutwidth
andheight
for buttons and also usedfixed
layoutmargins
. Fixed values causes the problem because theresolution
ofNexus Five
andNexus One
are different.Solution:
You can use
LinearLayout
with attributeandroid:weightSum
and useandroid:layout_weight
to buttons instead of fixedwidth
andheight
.
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
这不明显吗? 改变这个: Home 对此: Home 计算机只执行被告知的操作。 It is not obvious? Change this: Home to this:
下列中不属于面向对象的编程语言的是?[2022-05-30]
a迟到的响应,但你可以保持简单,并应用一个CSS类到htmlAttributes对象。 <%= Html.ActionLink("Button Name", "Index", null, new { @class="classname" }) %> 然后在您的样式表中创建一个类 a.classname { background: url(../Images/image.gif) no-repeat top left; display: block; width: 150px; ...尝试调整背景大小,看看是否有帮助: var str = "