Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的项目“在线考试”使用 spring3.0.2
将业务逻辑放在服务层,让控制器更容易感受。
如果发生任何错误,服务层可以提供什么来告诉控制器部分的最佳方式是什么(异常)
渴望尽快听到!
抛出你自己的异常,然后在你的控制器中捕获它们,这样你就可以准确地定义最佳行为
我有一个关于在 shell 脚本中嵌入脚本文件的问题。我经常需要创建一个单独的 shell 脚本来解包其他脚本,但我真的不喜欢注释掉所有嵌入脚本的变量。我的 shell 脚本内容示例:
echo "Hello world" pwd cat>embedded_perl_script&l