重载了一个方法: public class RepeatDictionaryComparer : IEqualityComparer<string> { public bool Equals(string x, string y) { return x != y; } public int GetHashCode(string obj) { return obj.GetHashCode(); } } 调用: Dictionary<string, string> _dic = new
最近在学习Django,跟着视频写了一个学生系统,主要是增删改查操作,界面丑的一匹 1.url.py from django.contrib import admin from django.urls import path,re_path from app01.views import classes from app01.views import teachers from app01.views import students urlpatterns = [ path('admin/',
自动任务类: @PersistJobDataAfterExecution @DisallowConcurrentExecution public class ReCodeBack implements Job { private static final Logger LOGGER = LoggerFactory.getLogger(ReCodeBack.class); @Autowired ReCodeBackTag reCodeBackTag; @Override public void e
在优化网站开启站点的图片缓存时,需要在.htaccess文件中加入: #文件缓存时间配置10分钟 <FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css)$"> Header set Cache-Control "max-age=600" </FilesMatch> 但是一打开网页就报错了,如下: Internal Server Error The server encountered an in