Prohibited package name: java

后端 未结 6 1407
灰色年华
灰色年华 2020-11-27 22:21

I tried to get the data from my database name as jaane with user name Hello and Password hello. Error:

java.lang.SecurityException: Prohibited package name:          


        
6条回答
  •  误落风尘
    2020-11-27 22:42

    If your project is inited by Gradle, I recommend you to change the project by specifying the package name, then we can avoid the problem.

    gradle init --type java-application --test-framework junit --package packname
    

提交回复
热议问题