Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
234 views
in Technique[技术] by (71.8m points)

spring security xml to property files

I am trying to add a security layer on my project and I'm doing the following tutorial: https://howtodoinjava.com/spring-security/login-form-based-spring-3-security-example/

This tutorial use xml files but my config does not. How can I translate what was written in the xml files (web.xml, application-security.xml) ?

For example the following code:

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
        /WEB-INF/employee-servlet.xml
        /WEB-INF/application-security.xml
    </param-value>
</context-param>

Do I just add something like that to my property file ?

context-param.param-name=contextConfigLocation
question from:https://stackoverflow.com/questions/65952144/spring-security-xml-to-property-files

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...