我尝试在weblogic 12c中部署一个示例,它是一个简单的spring启动应用程序,spring-boot-weblogic,你可以在github上找到它:
https://github.com/DISID/disid-proofs/tree/master/spring-boot-weblogic
我有一个奇怪的错误:
weblogic.application.ModuleException:java.lang.NoSuchFieldError:INSTANCE
这些是图片:
日志中的例外是:
import random
heads = 0
tails = 0
rounds = 0
while rounds < 100:
coin = random.randint(1, 2)
if coin == 1:
heads += 1
rounds += 1
elif coin == 2:
tails += 1
rounds += 1
print("You Flipped Heads {} Times!".format(heads))
print("You Flipped Tails {} Times!".format(tails))