Mixing scala and java in Play Framework

后端 未结 4 1077
耶瑟儿~
耶瑟儿~ 2021-01-06 04:53

I have a Java file that looks like this:

package AuthorizeNetFingerprint;


class Fingerprint {
    private static Log logger = LogFactory.getLog(Fingerprint         


        
4条回答
  •  一个人的身影
    2021-01-06 05:01

    I am not familiar with the Play framework, but the first line in your Scala sample code should instantiate the class AuthorizeNetFingerprint.Fingerprint, which only has a private constructor and is not a public class (i.e., it can only be accessed from the same package).

    Maybe a call to AuthorizeNetFingerprint.Fingerprint.createFingerprint(...) works, after making the class public?

提交回复
热议问题