小编ada*_*510的帖子

Excel 2007号码没有小数但没有自动舍入?

我似乎对Excel有一个相当简单的问题,虽然除了包含一个函数之外我找不到它的解决方案.

基本上我想在两个领域显示价格,一个是美元,一个是美分.

我有这个工作正常,但我有的问题是,当我在美元字段中说"24990.55"时,它将以美元显示"24991",在美分字段显示"55".

有什么办法可以强制Excel 自动循环吗?

excel excel-2007 excel-formula

7
推荐指数
2
解决办法
5万
查看次数

jdbc-user-service向SQL添加字段

这有点接近我之前的问题,但我一直在寻找如何做到这一点

applicationContext-security.xml中的当前代码:

<authentication-manager alias="authenticationManager">
    <!-- DAO Based Security -->
    <authentication-provider>
        <password-encoder hash="sha-256" />
        <jdbc-user-service data-source-ref="dataSource"
            users-by-username-query="SELECT user_name AS username, user_password AS password, enabled FROM user where user_name=?"
            authorities-by-username-query="SELECT user_name as username, R.name as authority FROM user U, roles R WHERE U.roles = R.Id AND user_name=?"/>
    </authentication-provider>
</authentication-manager>
Run Code Online (Sandbox Code Playgroud)

我想改变什么:

<authentication-manager alias="authenticationManager">
    <!-- DAO Based Security -->
    <authentication-provider>
        <password-encoder hash="sha-256" />
        <jdbc-user-service data-source-ref="dataSource"
            users-by-username-query="SELECT user_name AS username, user_password AS password, id, location, userFirstName, userLastName, enabled FROM user where user_name=?"
            authorities-by-username-query="SELECT user_name as …
Run Code Online (Sandbox Code Playgroud)

java jdbc spring-mvc spring-security

5
推荐指数
1
解决办法
2522
查看次数

spring使用安全性:在链接中验证principal.username

好的,这应该是一个简单的

在header.jspx文件中,我希望有一个链接,将经过身份验证的用户引导到他们的用户页面.

这是我用来检索用户名的:

<sec:authentication property="principal.username" /> 
Run Code Online (Sandbox Code Playgroud)

这就是我想要的内容:

<a href="http://localhost:8080/dealclick/users/username_here" > My account </a>
Run Code Online (Sandbox Code Playgroud)

有可能吗?

java jsp spring-mvc spring-security

3
推荐指数
1
解决办法
4376
查看次数