Giter Site home page Giter Site logo

Comments (8)

ulisesbocchio avatar ulisesbocchio commented on May 22, 2024

do you have a sample app I can take a look? Also please check out the samples in the samples repository. There's a variety of small projects that cover all the capabilities and combinations of configurations available.

from jasypt-spring-boot.

binzou2017 avatar binzou2017 commented on May 22, 2024

Hi, thanks for your reply. I was simply using the sample app CustomEncryptorDemoApplication.java by adding @EnableEncryptableProperties which cause the app to use default encryptor. Later on I was able to get around it by declare the the jasyptStringEncryptor in a class and then import the class before @EnableEncryptableProperties. I think this has something to do with the sequnece of which bean is created.

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 22, 2024

It might be, it would be great if you can paste the code here, or point me to a repo where you see the issue so I can troubleshoot it, or if you think this is no longer an issue please let me know so I can close the ticket

from jasypt-spring-boot.

SureshTak avatar SureshTak commented on May 22, 2024

@binzou2017 @enableencryptableproperties causing the app to use default encryptor. In the above comment you mentioned that you were able to fix this issue by adding jasyptStringEncryptor in class and then importing the class before @enableencryptableproperties. Can you please share code example how you did that exactly?

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 22, 2024

I was able to reproduce the issue, working on the fix.
For now you can do this to get the same result you should get with @EnableEncryptableProperties:

public static void main(String[] args) {
        new SpringApplicationBuilder().sources(CustomEncryptorDemoApplication.class, EnableEncryptablePropertiesConfiguration.class).run(args);
    }

Make sure to put the EnableEncryptablePropertiesConfiguration.class last in the list of sources.

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 22, 2024

I fixed the issue in MASTER, it'll be released soon

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 22, 2024

new version 1.13 is out, enjoy

from jasypt-spring-boot.

binzou2017 avatar binzou2017 commented on May 22, 2024

from jasypt-spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.