What I wrote before: The two front-end services have made slight changes to the teacher’s information, mainly changing the domain name and port part of the request (since the teacher’s paid tunnel has not expired, hurry up and change the domain name and port to use it like him) , directly saving 20RMB). I have dug out some personal public information related to WeChat and the database in the backend. If you want to deploy it, you need to fill it in according to your actual situation.
Yunshang Office OA (mainly focused on back-end)
Tips
- The project mainly uses JWT to generate tokens to serve as sessions to record login status. Therefore, by directly switching the token string on the front end, you can switch user identities for testing.
- In the last few episodes, if you clear the token after WeChat verification and binding your mobile phone to enter, the next time you enter will jump back and forth between mobile phone binding and WeChat automatic login. (Solution: Generate any user's token in the backend, and in the App. You can directly assign a value to the token in the wechatLogin method of vue) If you accidentally delete the openId inserted in the database at this time, you can obtain the break point in the method of the back-end /userInfo interface when jumping back and forth.
- Exceptions thrown in SpringSecurity filters generally cannot be caught by global exceptions. You can consider catching exceptions in situ and returning them with response or inheriting SpringSecurity's exception class for processing. Please refer to Baidu for details.
- When using the @MapperScan annotation to scan the Mapper interface, please pay attention to the scope of the package (accurate to the package where the mapper is located). Excessive scope will cause scanning exceptions (don't worry if you only use the @Mapper annotation).
- You can add commas to mapper-locations in the configuration file to find mapper-xml files in multiple paths.
- In the later stage, it is recommended to add @CrossOrigin annotation to the back-end interfaces that are accessed by WeChat public accounts to solve cross-domain issues.
- Springboot's startup class will automatically scan the same package and its sub-packages for classes marked with spring-related annotations. If you want classes outside of synchronization and sub-packages, you need to add them manually, or implement them based on "automatic assembly".
- It is strongly recommended that if you are not particularly interested in the front-end, please directly use all the front-end information provided by the teacher (I can't bear the torture of front-end errors). Please keep the node version absolutely consistent with the teacher! (I don’t understand why the backward compatibility of this thing is so poor...)
- Due to personal information security reasons, the maven project was cleared, and the processes folder was also cleared, so the zip of the process definition is gone, but it has been loaded into the database and turned into an instance. If there is any problem with this, please advise Upload another process zip and publish it.
Bilibili online courses